Re:The HTML5 Parsing Algorithm
by pornel on Friday August 06, 2010 @05:36AM
(#1580623)
ECMAScript has escape sequence just for this occasion:
Works everywhere (it's shame so few people know about it and use uglier and invalid "</sc"+"ript>").
[ Parent
| on HN ]
Why is that invalid?
http://www.w3.org/TR/html4/types.html
"The first occurrence of the character sequence "</" (end-tag open delimiter) is treated as terminating the end of the element's content."
Of course browsers never implemented this correctly.