W3C home > Mailing lists > Public > www-svg@w3.org > December 2004

RE: 1.2 uDOM

From: James Bentley <James.Bentley@guideworkstv.com>
Date: Wed, 8 Dec 2004 10:50:28 -0700
Message-ID: <687B7858C99ED711B87B00B0D0D1C922C0FE75@LAMBIC>
To: 'Robin Berjon' <robin.berjon@expway.fr>
Cc: "'www-svg@w3.org'" <www-svg@w3.org>

Would it make sense to move getElementById to
SVGDocument then?

-----Original Message-----
From: Robin Berjon [mailto:robin.berjon@expway.fr]
Sent: Wednesday, December 08, 2004 10:49 AM
To: James Bentley
Cc: 'www-svg@w3.org'
Subject: Re: 1.2 uDOM

James Bentley wrote:
> For DOM::Document, shouldn't getElementById throw a DOMException (with

No, not finding an ID is nothing exceptional, it just returns null.

> Also, since Document has the method getElementById, shouldn't DOM::Element
> have the DOMString id attribute - not SVGElement?

The notion of a single ID attribute for all of XML didn't exist when the 
DOM came to be, and therefore we can currently only guarantee to know 
about SVG ones.

Robin Berjon
Received on Wednesday, 8 December 2004 17:56:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:29:25 UTC