Bugzilla – Bug 697
Check text content of @src-less script elements
Last modified: 2011-01-13 11:13:27 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>".
I'll take a look at this but will try to talk with Henri before digging too deeply into it.
I created a separate bug for the style-element checking, bug 704
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
see bug 706 for change info