Bugzilla – Bug 706
Check text content of script/@src elements ("inline documentation for external scripts")
Last modified: 2011-01-13 11:12:50 CET
+++ This bug was initially created as a clone of Bug #697 +++ HTML5 has the following requirements for "Inline documentation for external scripts": http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#inline-documentation-for-external-scripts 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>".
Created attachment 174 [details] patch
https://bitbucket.org/validator/syntax-patches/qseries?apply=t&qs_apply=script-checker https://bitbucket.org/validator/syntax-patches/src/tip/script-checker I implemented the core checks for "/*" without a later "/*" and "//", for the script/@src case, and "<!--" without a later "-->" for both the src-less script case and script/@src case Up now at http://www.w3.org/html/check for testing
For the record here, IRC discussion from 2010-01 about other cases that the ABNF in the spec is intended for: http://krijnhoetmer.nl/irc-logs/whatwg/20100113#l-614 (and further down)
https://bitbucket.org/validator/syntax/changeset/5967ff8930db