Re: Extend use of namespaces

On Sun, 19 Sep 2010 14:47:42 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 9/19/10 4:59 AM, Anne van Kesteren wrote:
>> I guess if you really do not know upfront what the document is going to
>> look like you need it
>
> Isn't that the common case for site-wide stylesheets of all sorts (e.g.  
> the W3C ones that apply to all W3C specs)?
>
> Also, user stylesheets.  Or have we stopped caring about users?
>
>> but that seems extremely rare and far beyond the
>> typical 80/20 we require for most features.
>
> On the contrary, I think it's very common.

I just do not think it will be common for the HTML+SVG+MathML case.


>> And especially a feature as
>> complicated as this one. E.g. having a :svg pseudo-class or some such
>> would have done the trick as well.
>
> If we added enough such, perhaps.  And we'd need to add another one if  
> someone creates a new XML-based language people start caring about.  The  
> actual cost of namespaces in selectors seems pretty low to me... and the  
> complication is largely an authoring one, right?

I hope we can avoid doing that, personally -- introducing yet another  
namespace to the platform. But yes, the complication is largely an  
authoring one and we already suffered the cost so nothing much will  
probably change.


> Now prebinding certain prefixes might not be a bad idea.

If people end up using @namespace a lot, I suppose. I guess we'll find out  
once IE9 ships. I assume it supports @namespace given that it supports SVG  
et al?


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Sunday, 19 September 2010 12:54:17 UTC