W3C home > Mailing lists > Public > public-webapi@w3.org > December 2007

Re: [selectors-api] Selectors API comments: section 2.1

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 25 Dec 2007 23:26:18 +0100
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: public-webapi@w3.org
Message-ID: <3f03n3di55ksk48dejdsroel6g43mj8c6s@hive.bjoern.hoehrmann.de>

* Boris Zbarsky wrote:
>* What is the expected behavior of lookupNamespaceURI when a null 
>DOMString is passed in?  Should it match the behavior when an empty 
>string is passed in?

A bug report would be the appropriate course of action, since it is
incorrect to call the method with null as argument (null is not a
namespace name and you have to pass the empty string for the default
namespace).

>* The text "it MUST do either of the following" at the end of the second 
>paragraph after the interface definition would be better written as "it 
>MUST do one of the following".

Could you explain why that would be better? Looking at the text, it
seems this would be better written as "MUST do: ...".

>* It's not clear what "similar constructs" means in the phrase "and 
>other languages that allow similar constructs".  Does this mean 
>"first-class functions", or something else?

I would suggest to remove this remark.

>* It should be clarified that if the NSResolver is a Function, invoking 
>the function with a single string argument should replace calling the 
>lookupNamespaceURI method.  I believe the DOM Level 2 Events ECMAScript 
>bindings for EventListener have some language that could be reused here.

(They don't.)

>* I'm not sure what the "or does not return a DOMString" text in the "To 
>resolve namespace prefixes" paragraph means.  Does this mean that if, 
>say, an ECMAScript an object with a toString() method is returned this 
>method must not be invoked and instead the namespace should be treated 
>as unresolvable?

That is my reading. Is that simply unclear because one might have some
other expectation?
-- 
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 Tuesday, 25 December 2007 22:26:24 GMT

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