W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1999

NamedNodeMap.removeNamedItem( String name ) does not specify behavior when readonly

From: Terrel Shumway <terrel_shumway@hotmail.com>
Date: Sat, 17 Jul 1999 15:53:40 -0400 (EDT)
Message-ID: <19990717195335.79331.qmail@hotmail.com>
To: <www-dom@w3.org>
in
http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-1780488922

the behavior of removeNamedItem() is not specified in the case that the NamedNodeMap is readonly.

I believe that it should raise a NO_MODIFICATION_ALLOWED_ERR:


    public Node removeNamedItem(String name) throws DOMException{

     if( readonly ){ // the spec misses this case
         throw new DOMException( DOMException.NO_MODIFICATION_ALLOWED_ERR );
     }
 ...
}
Received on Monday, 19 July 1999 09:42:05 GMT

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