Re: Use cases for Selectors-API

2008-12-27 Thread Boris Zbarsky
Giovanni Campagna wrote: - Selectors is designed to be fast to match, while XPath had no such design criterion; as a result it's very easy to write pathologically slow XPath queries, even by accident. For non-pathological cases, Selectors are still faster, whether because o

Re: Use cases for Selectors-API

2008-12-27 Thread Jonas Sicking
So I consider the main reason for the Selector API is that many more developers are familiar with selectors than are familiar with XPath. I base this on the fact that many more pages use CSS stylesheets than use XPath, by several orders of magnitude (probably more than 3). It is also demonstrated

Re: Use cases for Selectors-API

2008-12-27 Thread Anne van Kesteren
On Sat, 27 Dec 2008 16:20:57 +0100, Giovanni Campagna wrote: <27/12/2008> Jonas Sickings * Minor nit: It's called XPath, not XMLPath. No the complete name is XML Path Language (XPath) 2.0, according to the latest Rec. XPath is a commonly used abbreviation, XMLPath is not. Also note that

Re: Use cases for Selectors-API

2008-12-27 Thread Giovanni Campagna
<27/12/2008> Jonas Sickings > A few comments: > > * XPath works mostly fine on HTML already, firefox supports it. The > only things that weren't defined by specs were a few things related to > case sensitivity. According to the HTML5 specification, the HTML parser is not required to build an XML

Re: [DOM2 Range] bug in example to handle insertions

2008-12-27 Thread Olli Pettay
On 12/27/08 2:17 AM, Kartikaya Gupta wrote: 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. Howe