DOM3 Core: Namespaces Algorithms vs xml: and xmlns:

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 UTC