Re: [cssom] Unrecognized - request for more information

Regarding unknown things that look like rules, WebKit parses and keeps
those things around and only filters for the recognized stuff later.
This is done so our Inspector can usefully flag invalid values for the
author.  So, it wouldn't be difficult for us to expose them.

However, I wouldn't actually want to do so.  Allowing authors to
innovate in property names and values means we'll have much greater
compat risk when we introduce any new properties or values.  It's
always possible for them to do so (for example, by XHRing the
stylesheet and parsing it themselves), but keeping it slow, expensive,
and difficult limits the spread of those methods.

The idea of a web-* set of user-defined properties, though, seems
totally fine.  That cordons off the potential damage into a space that
we can easily avoid in the future.

Similarly, I don't think we should expose things that don't look like
rules either, for the same reason.

~TJ

Received on Tuesday, 26 July 2011 18:37:11 UTC