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
Classification: Unclassified
Component: Non-schema checkers
All All
: P2 normal
Assigned To: Michael[tm] Smith
Depends on: 706
  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:


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:

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]"

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.
Comment 4 Michael[tm] Smith 2011-01-13 11:13:27 CET
see bug 706 for change info