diff --git a/source b/source index 7565440d37e..1a41b6d3d24 100644 --- a/source +++ b/source @@ -59755,14 +59755,15 @@ o............A....e
script
elementsThe easiest and safest way to avoid the rather strange restrictions described in
- this section is to always escape "<!--
" as "<\!--
", "<script
" as "<\script
", and "</script
" as "<\/script
" when these sequences appear in literals in scripts (e.g. in
- strings, regular expressions, or comments), and to avoid writing code that uses such constructs in
- expressions. Doing so avoids the pitfalls that the restrictions in this section are prone to
- triggering: namely, that, for historical reasons, parsing of script
blocks in HTML is
- a strange and exotic practice that acts unintuitively in the face of these sequences.
<!--
" as "<\!--
", "<script
" as "<\script
", and "</script
" as "<\/script
" when these sequences appear
+ in literals in scripts (e.g. in strings, regular expressions, or comments), and to avoid writing
+ code that uses such constructs in expressions. Doing so avoids the pitfalls that the restrictions
+ in this section are prone to triggering: namely, that, for historical reasons, parsing of
+ script
blocks in HTML is a strange and exotic practice that acts unintuitively in the
+ face of these sequences.
The script
element's descendant text content must match the script
production in the following ABNF, the character set for which is Unicode.