NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 697 - Check text content of @src-less script elements
Check text content of @src-less script elements
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: Non-schema checkers
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
http://www.whatwg.org/specs/web-apps/...
Depends on: 706
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-29 10:52 CET by Simon Pieters
Modified: 2011-01-13 11:13 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Pieters 2009-12-29 10:52:08 CET
HTML5 has the following requirements for script:

http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#inline-documentation-for-external-scripts
http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#restrictions-for-contents-of-script-elements

and for style:

"The textContent of a style element must match the style production in the following ABNF, the character set for which is Unicode. [ABNF]"
http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-style-element

I'd suggest having a warning for the other (r)cdata elements that don't match the ABNF for style. I'd also suggest having a warning for script that goes into double escaped but leaves it with "-->" rather than "</script>".
Comment 1 Michael[tm] Smith 2010-01-01 09:12:42 CET
I'll take a look at this but will try to talk with Henri before digging too deeply into it.
Comment 2 Michael[tm] Smith 2010-01-03 09:18:58 CET
I created a separate bug for the style-element checking, bug 704
Comment 3 Michael[tm] Smith 2010-01-05 12:04:32 CET
Beacause there are essentially two separate checkers (for two separate ABNFs) that need to be implemented for <script> checking, I split out the "Inline documentation for external scripts" case to a new bug, bug 706, and that leaves the other script case for this bug.

http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#restrictions-for-contents-of-script-elements
Comment 4 Michael[tm] Smith 2011-01-13 11:13:27 CET
see bug 706 for change info