- From: Robin Berjon <robin.berjon@expway.fr>
- Date: Wed, 08 Dec 2004 12:49:29 -0500
- To: James Bentley <James.Bentley@guideworkstv.com>
- Cc: "'www-svg@w3.org'" <www-svg@w3.org>
James Bentley wrote: > For DOM::Document, shouldn't getElementById throw a DOMException (with code > of NOT_FOUND_ERR)? 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:50:00 UTC