Restrictions for contents of script elements

Hi,

I don't understand the restrictions defined for the content of script
elements: http://dev.w3.org/html5/spec/semantics.html#restrictions-for-contents-of-script-elements

script being a raw-text element, it can't contain the "script-end"
production (http://www.w3.org/TR/html5/syntax.html#cdata-rcdata-restrictions).

Why do we need such a complex ABNF for the content of script elements?

Thank you,

Julien

Received on Tuesday, 13 April 2010 10:13:19 UTC