Holger Flörke wrote: > > Reading the DOM 1.0 recommendation leads to the follwing questions: > > - Interface NamedNodeMap, Method removeNamedItem > DOM says: > Return Value: The node removed from the map or NULL if no node with > such a name exists. > Exceptions: NOT_FOUND_ERR: Raised if there is no node named 'name' in > the map > > If you throw an exception, why return something at all? Exactly. This what the errata says. See http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html > - Interface Node, Attribute nodeValue > DOM says: > Exceptions on setting: NO_MODIFICATION_ALLOWED_ERR: raised when the > node is readonly. > > Certain nodes (ie Document) does not have any nodeValue at all (NULL). > What will happen if someone tries to set the nodeValue on such a node? What > does "readonly" mean? This stands for readonly nodes, such as entityref's children. I don't think it's meant to cover the setting of nodeValue when this doesn't make sense. So I guess you found a hole in the spec. I'll add it to the issues list so that it is addressed by the DOM Working Group. Thanks for your feedback. -- Arnaud Le Hors - W3C, DOM Activity Lead - http://www.w3.org/People/ArnaudReceived on Tuesday, 27 July 1999 09:55:47 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:24:50 GMT