W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2005

DOM3 Core: Namespaces Algorithms vs xml: and xmlns:

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 18 Dec 2005 21:16:44 +0100
To: www-dom@w3.org
Message-ID: <asdbq1ddrfvfo9ug45mpb6cqgmahdln12f@hive.bjoern.hoehrmann.de>

Hi,

  From http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/ it is
not clear how lookupPrefix and lookupNamespaceURI behave for the special
xml: and xmlns: namespaces. I would expect

  lookupNamespaceURI('xml') == 'http://www.w3.org/XML/1998/namespace' &&
  lookupNamespaceURI('xmlns') == 'http://www.w3.org/2000/xmlns/' &&
  lookupPrefix('http://www.w3.org/XML/1998/namespace') == 'xml' &&
  lookupPrefix('http://www.w3.org/2000/xmlns/') == 'xmlns'

to hold true for any Node regardless of the actual state of the tree,
this however does not seem to be required or licensed by the DOM Level 3
Core Recommendation; https://bugzilla.mozilla.org/show_bug.cgi?id=246604
implementers don't care much about that though, so in Mozilla we now
have the surprising result that lookupNamespaceURI behaves as I would
expect, but lookupPrefix does not.

regards,
-- 
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 Sunday, 18 December 2005 20:16:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT