Anne van Kesteren wrote: >> 4. I really hate having two different methods for matchSingle and >> matchAll, and I'd prefer a single method with a boolean indicating >> if only the first result should be retrieved or all. The result >> should always be a StaticNodeList. If the boolean is true, then the >> length of the result is <= 1, and it's unconstrained otherwise. > > I don't think adding more arguments is acceptable. Well having matchSingle and matchAll reply two different things is from here hardly acceptable too... That means that a given code will have to implement two different handlers depending on the queried set, first one or all. At least, make both methods reply a StaticNodeList please ! On scoped stylesheets : getElementsByTagName() is available on all Elements and matchAll() won't be allowed on Elements ??? While the former is a subcase of the latter ? Wow... Sorry, this is, from a DOM user point of view, VERY suboptimal </Daniel>Received on Friday, 29 September 2006 08:54:44 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:55 GMT