W3C home > Mailing lists > Public > public-html@w3.org > August 2009

Re: Issues arising from not reparsing

From: Henri Sivonen <hsivonen@iki.fi>
Date: Mon, 10 Aug 2009 15:00:56 +0300
Message-Id: <DE2911F7-43C2-4FDD-AB22-69CEB514A25B@iki.fi>
To: HTMLWG WG <public-html@w3.org>
On Aug 10, 2009, at 14:14, Henri Sivonen wrote:

> In case #1, I think the right fix is to introduce more statefulness  
> into the escapes so that <!-- and --> that occur inside string  
> literals are heuristically ignored. (Anyone care to suggest a  
> heuristic that doesn't involve rolling a JS parser into the HTML  
> parser?)


A more radical way to address this would be making "..." and '...'  
escape </script> to cater for the document.write() case and not  
letting <!-- ... --> be magic.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Monday, 10 August 2009 12:01:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:43 GMT