

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
72 messages in org.w3.public-webapiRe: ACTION-87: Selectors API| From | Sent On | Attachments |
|---|---|---|
| Anne van Kesteren | Feb 25, 2006 9:11 am | .htm |
| Daniel Schierbeck | Feb 25, 2006 10:18 am | |
| Daniel Schierbeck | Feb 25, 2006 10:23 am | |
| Bjoern Hoehrmann | Feb 25, 2006 10:43 am | |
| Daniel Schierbeck | Feb 25, 2006 11:28 am | |
| Jim Ley | Feb 25, 2006 11:47 am | |
| Ian Hickson | Feb 25, 2006 3:56 pm | |
| Cameron McCormack | Feb 25, 2006 4:46 pm | |
| Lachlan Hunt | Feb 25, 2006 4:58 pm | |
| Cameron McCormack | Feb 25, 2006 5:00 pm | |
| Daniel Schierbeck | Feb 25, 2006 5:24 pm | |
| Anne van Kesteren | Feb 26, 2006 2:21 am | |
| Cameron McCormack | Feb 26, 2006 2:32 am | |
| Cameron McCormack | Feb 26, 2006 1:03 pm | |
| Maciej Stachowiak | Feb 26, 2006 3:02 pm | |
| Jonas Sicking | Feb 28, 2006 1:57 pm | |
| Ian Hickson | Mar 6, 2006 12:33 pm | |
| Ian Hickson | Mar 6, 2006 12:35 pm | |
| Anne van Kesteren | Mar 22, 2006 2:30 am | |
| Anne van Kesteren | Mar 22, 2006 2:33 am | |
| Anne van Kesteren | Mar 22, 2006 2:34 am | |
| mozer | Mar 22, 2006 3:15 am | |
| Anne van Kesteren | Mar 22, 2006 3:58 am | |
| mozer | Mar 22, 2006 4:29 am | |
| Anne van Kesteren | Mar 22, 2006 4:36 am | |
| Jim Ley | Mar 22, 2006 5:43 am | |
| Anne van Kesteren | Mar 22, 2006 6:08 am | |
| Jim Ley | Mar 22, 2006 6:44 am | |
| Maciej Stachowiak | Mar 22, 2006 11:16 am | |
| Maciej Stachowiak | Mar 22, 2006 11:22 am | |
| Maciej Stachowiak | Mar 22, 2006 11:24 am | |
| Robin Berjon | Mar 22, 2006 2:01 pm | |
| Maciej Stachowiak | Mar 22, 2006 2:28 pm | |
| Ian Hickson | Mar 22, 2006 2:48 pm | |
| Ian Hickson | Mar 22, 2006 2:50 pm | |
| Maciej Stachowiak | Mar 22, 2006 3:20 pm | |
| Jim Ley | Mar 22, 2006 6:16 pm | |
| Jim Ley | Mar 22, 2006 6:24 pm | |
| Anne van Kesteren | Mar 23, 2006 4:27 am | |
| Ian Hickson | Mar 23, 2006 2:30 pm | |
| Anne van Kesteren | Mar 25, 2006 4:36 am | |
| Ian Hickson | Mar 27, 2006 3:13 pm | |
| Anne van Kesteren | Apr 3, 2006 5:45 am | |
| Anne van Kesteren | Apr 3, 2006 5:51 am | |
| liorean | May 12, 2006 8:49 pm | |
| Anne van Kesteren | May 13, 2006 4:15 am | |
| liorean | May 13, 2006 12:08 pm | |
| Anne van Kesteren | May 13, 2006 12:26 pm | |
| liorean | May 13, 2006 2:39 pm | |
| Anne van Kesteren | May 14, 2006 7:20 am | |
| liorean | May 14, 2006 4:21 pm | |
| Anne van Kesteren | May 15, 2006 3:15 am | |
| liorean | May 16, 2006 9:29 pm | |
| Anne van Kesteren | May 17, 2006 5:17 am | |
| Lachlan Hunt | May 17, 2006 6:19 am | |
| Anne van Kesteren | May 17, 2006 6:29 am | |
| Jim Ley | May 17, 2006 6:35 am | |
| Lachlan Hunt | May 17, 2006 7:02 am | |
| Robin Berjon | May 17, 2006 7:07 am | |
| Anne van Kesteren | May 18, 2006 12:45 am | |
| Jonas Sicking | May 30, 2006 3:11 pm | |
| Jonas Sicking | May 30, 2006 3:24 pm | |
| Jonas Sicking | May 30, 2006 3:41 pm | |
| Ian Hickson | May 30, 2006 3:55 pm | |
| Robin Berjon | May 30, 2006 4:14 pm | |
| Jonas Sicking | May 30, 2006 5:56 pm | |
| Anne van Kesteren | Jun 5, 2006 2:46 am | |
| Anne van Kesteren | Jun 5, 2006 2:49 am | |
| Jonas Sicking | Jun 5, 2006 12:30 pm | |
| Charles McCathieNevile | Jun 5, 2006 5:36 pm | |
| liorean | Jun 5, 2006 6:16 pm | |
| Maciej Stachowiak | Jun 5, 2006 10:40 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: ACTION-87: Selectors API | Actions... |
|---|---|---|
| From: | Ian Hickson (ia...@hixie.ch) | |
| Date: | Mar 22, 2006 2:48:28 pm | |
| List: | org.w3.public-webapi | |
On Wed, 22 Mar 2006, Anne van Kesteren wrote:
New comments:
The term "first" is not defined (for |match()|). Specifically, it should say whether it is the first match in a depth-first pre-order traversal, or whether it is a breath-first traversal (depth-first pre-order makes the most sense, IMHO).
"In document order" could be more explicit.
There is no normative description of how |Function| objects in ECMAScript end up supporting XPathNSResolver.
I don't think "In ECMAScript bindings the nsresolver argument in both match and matchAll must be an optional argument." as a requirement makes sense. I think it would be better to phrase it as something like "In ECMAScript, if the nsresolver argument in an invocation of match() or matchAll() is omitted, UAs must handle the invocation as if the nsresolver argument was null." or something. That text sucks but the point is that the requirement is on the UA, and the requirement clearly states what must happen. As currently phrased, the spec doesn't say what it means for the argument to be optional.
Also, the spec should say what should happen if the nsresolver argument is null.
* Having an interface doesn't imply behaviour -- e.g. NodeList doesn't imply that NodeList is live. You can have an object that implemnets NodeList and is not live.
DOM Level 3 Core says it's live. Per discussion on public #webapi I see that is suboptimal and if DOM Level 3 Core gets errata to make that more clear I'll reconsider it.
If you really want to not use the term NodeList, I recommend defining StaticNodeList as:
typedef StaticNodeList NodeList;
...rather than duplicating the interface definition.
* I would recommend against supporting namespaces in the first version, for simplicity.
I agree that they are probably not that much needed by authors. Therefore the argument is optional in ECMAScript bindings so it doesn't harm the scenario were people probably use it the most.
The API supports namespaces. That makes it more complicated, whether or not the author can omit the namespace argument.
* The spec doesn't say _how_ to resolve the namespaces using the nsresolver argument.
I deferred this to DOM Level 3 XPath now.
That is a non-normative note. It's also not clear where in that spec it is defined what the requirements on implementations and authors are.
* IMHO the argument to getElementsBySelector should be a "group of selectors" not a "selector" (using Selectors terminology).
Used this terminology although I don't really see the Selectors draft defining this term (using <dfn> or whatever). Could you please point it out?
Section 5 of Selectors.
* IMHO the method should not raise an exception when the selector contains a pseudo-element. It should would return an empty list.
Given that it per definition only returns Element nodes I don't see why it shouldn't raise an exception.
There are three main reasons. One is that pseudo-elements can in certain cases refer to Elements (XBL2 in particular introduces this concept).
The second reason is that pseudo-elements are perfectly valid selectors, so if the script is just running through a list of selectors and checking each one for a match, it will not want valid selectors to throw an exception. Consider, e.g., if the input is coming from a user -- you want to distinguish "doesn't match any elements (because it can't)" from "is invalid syntax".
The selector "foo:not(foo)" will never match anything either, but it doesn't raise an exception. You don't want to require the implementation to look at the selector any more than it would for a normal CSS implementation.
The third reason is that you could have a selector that contains pseudo-elements and yet can match an element, for instance:
p, p::first-line
...can match an element (p).
Otherwise, looks good.
-- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'








.htm