FileDocCategorySizeDatePackage
RemoveAttributeNS.javaAPI DocAndroid 1.5 API5557Wed May 06 22:41:06 BST 2009tests.org.w3c.dom

RemoveAttributeNS

public final class RemoveAttributeNS extends DOMTestCase
The "removeAttributeNS(namespaceURI,localName)" method for an attribute causes the DOMException NO_MODIFICATION_ALLOWED_ERR to be raised if the node is readonly. Obtain the children of the THIRD "gender" element. The elements content is an entity reference. Try to remove an attribute from the entity reference by executing the "removeAttributeNS(namespaceURI,localName)" method. This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown.
author
NIST
author
Mary Brady
see
http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])
see
http://www.w3.org/TR/DOM-Level-2-Core/core#ID-ElRemAtNS
see
http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('ID-ElRemAtNS')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])

Fields Summary
DOMDocumentBuilderFactory
factory
DocumentBuilder
builder
Constructors Summary
Methods Summary
protected voidsetUp()

        super.setUp();
        try {
            factory = new DOMDocumentBuilderFactory(DOMDocumentBuilderFactory
                    .getConfiguration2());
            builder = factory.getBuilder();
        } catch (Exception e) {
            fail("Unexpected exception" + e.getMessage());
        }
    
protected voidtearDown()

        factory = null;
        builder = null;
        super.tearDown();