Re: [cssom] serializing Selectors

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 
before
1927       // another namespace rule that binds the same prefix to a 
different
1928       // namespace?

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

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.

-Boris

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