[whatwg] Quirks Mode Standard

On Fri, 17 Feb 2012 15:45:37 +0100, Simon Pieters <simonp at opera.com> wrote:

> I did some quick and dirty research on dotnetdotcom's web200904 data,

I also searched for "braces in style attribute":

grep -iaPo "<[a-z]+\s[^>]*style\s*=\s*[\"']{[^\"'>]+" web200904 >  
style-braces.txt
6556 matches

WebKit and IE9 in non-compat view don't support this quirk.

Then I searched for "space before unit":

$ grep -iaPo  
"([a-z]+-)*(position|spacing|width|bottom|clip|size|height|left|right|top|bottom|margin|padding|indent|align|width|end|start|columns|border|shadow)\s*:\s*-?([1-9][0-9]*(\.[0-9]+)?|[0-9]?\.[0-9]+)\s+(px|em|ex|cm|mm|in|pt|pc)"  
web200904 > space-before-unit.txt
6265 matches

Firefox doesn't support this quirk. Opera used to, but we have now dropped  
it because supporting it broke some sites.

Can we also drop the braces in style attribute quirk? (Note that the data  
does not include external style sheets, so the second quirk might have  
more usage than the first.)

http://simon.html5.org/specs/quirks-mode#the-braces-in-style-attribute-quirk

-- 
Simon Pieters
Opera Software

Received on Monday, 20 February 2012 02:01:06 UTC