jim.ley at gmail.com
Sun Feb 5 16:19:53 PST 2006
On 2/5/06, Ian Hickson <ian at hixie.ch> wrote:
> On Sun, 5 Feb 2006, Lachlan Hunt wrote:
> Probably doesn't matter which group does it since it'd end up being me
> doing the work either way...
Well the review processes are slightly different :)
> I can certainly see myself speccing a getElementsBySelector() API as part
> of Selectors 2. But either way, the spec for gEBS is simple; it returns
> the same type as getElementsByTagName(), it is accessible from Document
> and Element nodes and selects a subset of the descendants of that node, it
> takes a single argument (a string representing a selector), its first
> version doesn't support namespaces, and it raises an exception SYNTAX_ERR
> if the string can't be successfully parsed by the UA.
As a general outline this is very good, ducking the tricky issue of
namespaces is sensible, and much I prefer this sort of proposal to a
specific className one.
More information about the whatwg