Re: setRequestHeader underspecified - setting Accept header as an example

2008-12-26 Thread Anne van Kesteren
On Tue, 18 Nov 2008 13:50:36 +0100, Hallvord R. M. Steen hallv...@opera.com wrote: I've found a site that requires that any UA default value is overridden with the new value when using setRequestHeader('Accept', ..). (For reference: the site is mail.163.com, it uses XHR extensively to

Use cases for Selectors-API

2008-12-26 Thread Giovanni Campagna
As for the subject, I was wondering what are the use cases for Selectors API. Yes, author desperately need a way to get element that match some constraint inside a document (ie all tables or all p span.urgent elements). But they already have a language to implemented this: XML Path Language +

Re: Use cases for Selectors-API

2008-12-26 Thread Jonas Sicking
On Fri, Dec 26, 2008 at 10:26 PM, Giovanni Campagna scampa.giova...@gmail.com wrote: As for the subject, I was wondering what are the use cases for Selectors API. Yes, author desperately need a way to get element that match some constraint inside a document (ie all tables or all p span.urgent

[DOM2 Range] bug in example to handle insertions

2008-12-26 Thread Kartikaya Gupta
Found an issue in DOM2 Range that doesn't seem to be addressed anywhere that I could find: Section 2.12.1 (handling insertions) says that the boundary point offset should only be adjusted if the insertion point's offset is strictly less than it. However, the first example they give doesn't do

Re: Use cases for Selectors-API

2008-12-26 Thread Boris Zbarsky
Giovanni Campagna wrote: - XMLPath and DOM3 XPath actually are implemented: even FF2 supports document.evaluate, instead selectors api are included only in the very latest browser (Opera 10 and FF3.1 AFAIK) And Safari and IE8. But yes, the point that XPath is already supported as a