Erratum in DOM Level 3 core: lookupPrefix

On 
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Node3-lookupNamespacePrefix 
we find:


lookupPrefix introduced in DOM Level 3
     Look up the prefix associated to the given namespace URI, starting 
from this node. The default namespace declarations are ignored by this 
method.
     See Namespace Prefix Lookup for details on the algorithm used by 
this method.
     Parameters

     namespaceURI of type DOMString
         The namespace URI to look for.

     Return Value

     DOMString
      
     Returns an associated namespace prefix if found or null if none is 
found. If more than one prefix are associated to the namespace prefix, 
the returned namespace prefix is implementation dependent.


I suspect, "If more than one prefix are associated to the namespace 
prefix, the returned namespace prefix is implementation dependent." 
should probably be "If more than one prefix are associated to the 
namespace URI, the returned namespace prefix is implementation dependent."

-- 
Elliotte Rusty Harold  elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim

Received on Tuesday, 14 June 2005 16:49:25 UTC