Re: [selectors-api] Investigating NSResolver Alternatives

Bjoern Hoehrmann wrote:
>>   :not(svg|*) > svg|svg
> 
> I think the point Anne tried to make is that you can somehow work around
> it if you accept that your workaround may fail in unusual situations, so
> here you'd use `svg:not(:root)` and accept that it breaks with non-SVG
> 'svg' elements, and 'svg' elements directly contained in SVG fragments.

That latter doesn't seem like an unusual situation, so much...  is it?

> Using `//svg:svg[ not(parent::svg:*) ]` is another viable alternative...

So not using selectors-api at all?  Sure.  But then why are we bothering with 
selectors api?

-Boris

Received on Saturday, 12 July 2008 18:25:28 UTC