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

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 UTC