[Bug 9071] Handling of "[" in between-doctype-public-and-system-identifiers-state may not be ideal

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9071





--- Comment #14 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>  2010-02-25 05:37:26 ---
(In reply to comment #0)
> Currently "[" in between-doctype-public-and-system-identifiers-state is handled
> like any other unrecognised character, and forces quirks mode.
> 
> Firefox appears to have special-casing for "[" here. Compare (in Firefox 3.6
> with html5.enable off):
> 
> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!doctype%20html%20public%20%22%22%20[!%22%C2%A3%24%25^%26*%28%29{}[]%3E%0A
> - "CSS1Compat"
> 
> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!doctype%20html%20public%20%22%22%20!%22%C2%A3%24%25^%26*%28%29{}[]%3E%0A
> - "BackCompat"

What these two tests shows w.r.t. Firefox is that  the [] (square brackts) has
a toggle effect. The math goes like this:

No-Quirks Doctype + [] = Quirks doctype.

    Example: 
<!doctype html public> + [] = <!doctype html public  []> = no quirks


Quirks Doctype + [] = No-Quirks

   Example:
<!doctype html> + [] = <!doctype html  []> = Quirks.

Wild guess: Mozilla at one point in time wanted to be able to turn quirks into
no-quirks and vice versa?

BUT NOTE: Firefox looks fore paired brackets. The reason why the second test
lands in quirks is becaus there is no paired brackets. Opera 10.10 has the same
issue. One cannot IMHO blame them for this.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 25 February 2010 05:37:28 UTC