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

Re: Issues arising from not reparsing

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 10 Aug 2009 07:19:39 -0700
Message-ID: <63df84f0908100719r506b59fdn997f7161246fe2be@mail.gmail.com>
To: Henri Sivonen <hsivonen@iki.fi>
Cc: HTMLWG WG <public-html@w3.org>
On Monday, August 10, 2009, Henri Sivonen <hsivonen@iki.fi> wrote:
> 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.

This would be great IMHO. Can we try putting that in gecko and see if
that results in compatibility bugs?

/ Jonas
Received on Monday, 10 August 2009 14:20:20 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:53 UTC