W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: [selectors-api] Why null as opposed to empty string (or either one) to resolve default namespace

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 11 Jul 2008 22:20:46 +0200
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: public-webapps@w3.org
Message-ID: <a1gf74pmogrko813qo50j31jso016122mp@hive.bjoern.hoehrmann.de>

* Boris Zbarsky wrote:
>For what it's worth, it looks to me like Gecko returns the default 
>namespace if "" is passed to lookupNamespaceURI.  It's not clear to me 
>whether that's correct per the DOM3 Core spec.

It is, because it requires that for `null`, and requires to treat empty
strings the same as `null` whenever namespace names are specified.
-- 
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 Friday, 11 July 2008 20:21:25 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:27 GMT