W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2005

Erratum in DOM Level 3 core: lookupPrefix

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Tue, 14 Jun 2005 12:49:17 -0400
Message-ID: <42AF0A8D.1010905@metalab.unc.edu>
To: www-dom@w3.org

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 GMT

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