W3C home > Mailing lists > Public > public-webapi@w3.org > November 2006

Re: [selectors-api] How to invoke lookupNamespaceURI?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 18 Nov 2006 20:41:14 +0100
To: "Anne van Kesteren" <annevk@opera.com>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <0tnul29ubovmh8lh4o6sjut0muemkc2srg@hive.bjoern.hoehrmann.de>

* Anne van Kesteren wrote:
>The latest version of the draft (1.14) assumes (in an example) that you  
>take prefixes from left to right and requires (in prose) that you reuse  
>the result for each unique (after lowercasing) prefix.

I think the draft should only define that implementations must not call
the resolver more than once for any prefix; whether the implementation
looks up a specific prefix at all or in which order it does so should be
up to the implementation. As an example,

  x|y:empty > a|b

would match no elements, the implementation might notice that before it
cares about the prefixes, and if it does not, it could reasonably start
evaluating the selector from either side. In short, defining this would
expose implementations details for no good reason.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Saturday, 18 November 2006 19:41:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:56 GMT