25.57. Document.addEventListener( ): see Element.addEventListener( ) |
25.58. Document.attachEvent( ): see Element.attachEvent( ) |
25.59. Document.createAttribute( ): create a new Attr nodeDOM Level 1 Core:25.59.1. Synopsis
Attr createAttribute(String
name
)
tHRows DOMException;
25.59.1.1. Arguments
25.59.1.2. ReturnsA newly created Attr node with its nodeName property set to name . 25.59.1.3. ThrowsThis method throws a DOMException with a code of INVALID_CHARACTER_ERR if name contains an illegal character. 25.59.2. See AlsoAttr , Element.setAttribute( ) , Element.setAttributeNode( ) |
25.60. Document.createAttributeNS( ): create an Attr with a
|
25.61. Document.createCDATASection( ): create a new CDATASection nodeDOM Level 1 Core:25.61.1. Synopsis
CDATASection createCDATASection(String
data
)
tHRows DOMException;
25.61.1.1. Arguments
25.61.1.2. ReturnsA newly created CDATASection node, with the specified data as its contents. 25.61.1.3. ThrowsIf the document is an HTML document, this method throws a DOMException with a code of NOT_SUPPORTED_ERR because HTML documents do not allow CDATASection nodes. |
25.62. Document.createComment( ): create a new Comment nodeDOM Level 1 Core:25.62.1. SynopsisComment createComment(String data ); 25.62.1.1. Arguments
25.62.1.2. ReturnsA newly created Comment node, with the specified data as its text. |
25.63. Document.createDocumentFragment( ): create a new, empty DocumentFragment nodeDOM Level 1 Core:25.63.1. SynopsisDocumentFragment createDocumentFragment( ); 25.63.1.1. ReturnsA newly created DocumentFragment node with no children. |
25.64. Document.createElement( ): create a new Element nodeDOM Level 1 Core:25.64.1. Synopsis
Element createElement(String
tagName
)
tHRows DOMException;
25.64.1.1. Arguments
25.64.1.2. ReturnsA newly created Element node with the specified tag name. 25.64.1.3. ThrowsThis method throws a DOMException with a code of INVALID_CHARACTER_ERR if tagName contains an illegal character. |