Hey,
There has been a lot of discussion on the public-webapi@w3.org mailing list about what names these methods should have. I was interested in what you guys think are the best names.
What do they do?
Simply put, you can get either the first element in the document, or a static nodelist of all elements in the document, that match a group of selectors, using two different methods. They can both be used on Documents and on Elements. Example (using "XXX" and "YYY" as method names here, respectively):This will be supported natively in browsers in due course so you don't need to use libraries for this anymore.Code:var e = document.XXX("#nav ul"); var items = e.YYY("li"); // static nodelist
See the working draft of the spec, or the editor's draft.
So what do you think are appropriate names for these two methods? Why?








Bookmarks