Re: Issues arising from not reparsing

On Sun, 25 Oct 2009, Simon Pieters wrote:
> On Tue, 20 Oct 2009 03:58:20 +0300, Ian Hickson <ian@hixie.ch> wrote:
> > 
> > This also made the conformance requirements for <script> quite 
> > complex. I ended up using ABNF, but I couldn't quite work out how to 
> > do it without prose rules. If anyone can rephrase the ABNF for 
> > <script> restrictions without using prose rules, please let me know. 
> > (Also acceptable: a version of the ABNF in unambiguous English prose. 
> > I didn't even try in this case because I think it would be 
> > inpenetrable.)
> 
> It would be good to have similar (but less complex) content model 
> restrictions on the other (r)cdata elements in order to make 
> <style><!--</style> invalid because that causes weird parsing in legacy 
> browsers and is clearly an authoring mistake.

What rule do you want? Just making "<!--" invalid?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 26 October 2009 00:00:30 UTC