W3C home > Mailing lists > Public > public-html@w3.org > August 2007

Re: Distributed Extensibility

From: Philip Taylor <philip@zaynar.demon.co.uk>
Date: Fri, 03 Aug 2007 13:34:07 +0100
Message-ID: <46B320BF.7090708@zaynar.demon.co.uk>
To: public-html@w3.org

Philip Taylor wrote:
> [...]
> document.namespaces is an array of namespace objects (for all the 
> explicitly- and implicity-declared namespaces in the document), each 
> with properties "name" and "urn". [...]

Actually, it's not just an array - you can access it by scope-name too, i.e.

     <html xmlns:foo="bar">
     document.namespaces['foo'].urn == 'bar';

(or you can still access it by array index), and also you can use 
document.namespaces(...) instead of document.namespaces[...] (for name 
and index), and you can do document.namespaces.add(name, urn) (but can't 
remove). Not sure if there are any other bits and pieces.

Philip Taylor
Received on Friday, 3 August 2007 12:34:10 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:25 UTC