W3C home > Mailing lists > Public > www-style@w3.org > October 2009

Re: [cssom] serializing Selectors

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 20 Oct 2009 17:33:26 -0400
Message-ID: <4ADE2CA6.3060008@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: Andrey Mikhalev <amikhal@abisoft.spb.ru>, CSS WG <www-style@w3.org>
On 10/20/09 4:00 PM, Anne van Kesteren wrote:
> On Tue, 20 Oct 2009 16:02:36 +0200, Andrey Mikhalev
> <amikhal@abisoft.spb.ru> wrote:
>> neither:
>> ability to aceess @namespace rules essential if stylesheet
>> constructed using cssom api.
> Do implementations even support this?

In Gecko, inserting an @namespace rule will toss is prefix-to-namespace 
mapping in the namespace map, but it's somewhat buggy no matter how you 
slice it, as this comment shows:

1926       // XXXbz does this screw up when inserting a namespace rule 
1927       // another namespace rule that binds the same prefix to a 
1928       // namespace?

Removing an @namespace rule has no effect on the prefix-to-namespace 

As long as you add rules to the stylesheet in the order you want them to 
end up in (so first to last), Gecko's behavior does allow useful 
creation of a stylesheet with namespaced stuff in it.

Received on Tuesday, 20 October 2009 21:34:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:30 UTC