News for hackers. Stuff that matters.
Re:Google Releases mod_pagespeed for Apache by mike-cardwell on Wednesday November 03, 2010 @12:46PM (#1865404)
Would it? I thought the type defaulted to "text" if missing. I'd be surprised if css selectors didn't recognise that...
Re:Google Releases mod_pagespeed for Apache by pornel on Wednesday November 03, 2010 @12:54PM (#1865432)
CSS sees DOM attributes (what you get from element.getAttribute('type')), and not DOM properties (element.type).

These are different things kept roughly in sync by setters/getters (called "reflected properties" in HTML spec).

The `type` attribute is also supposed to have default value implied by the DTD, but that could only work in "validating" SGML/XML parsers (which browsers aren't).

Re:Google Releases mod_pagespeed for Apache by mike-cardwell on Wednesday November 03, 2010 @01:00PM (#1865461)
I didn't know that. I tested it myself and you're right. The "Elide Attributes" filter seems fairly pointless anyway. I can't imagine it making that much of a difference in performance even if it was safe.