XML DOM β Attr Object
-- Learn not only technology, but also dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmark
XML DOM Tutorial
XML DOM Tutorial DOM Introduction DOM Nodes DOM Node Tree DOM Parser DOM Load Functions DOM Methods DOM Access Nodes DOM Node Information DOM Node List and Named Node Map DOM Traverse Node Tree DOM Browser Differences DOM Navigate Nodes DOM Get Node Values DOM Change Node Values DOM Remove Nodes DOM Replace Nodes DOM Create Nodes DOM Add Nodes DOM Clone Nodes DOM HttpRequest Object DOM Node Types DOM Node Object DOM NodeList Object DOM NamedNodeMap Object DOM Document Object DOM DocumentImplementation Object DOM DocumentType Object DOM ProcessingInstruction Object DOM Element Object DOM Attr Object DOM Text Object DOM CDATASection Object DOM Comment Object DOM HttpRequest Object DOM Parse Error Object DOM Parser Errors DOM Summary DOM Examples DOM Validate XML XML DOM β Element Object XML DOM β Text ObjectXML DOM - Attr Object
Attr Object
The Attr object represents an attribute of an Element object. The permissible values of an attribute are usually defined in a DTD.
Since the Attr object is also a node, it inherits properties and methods from the Node object. However, attributes cannot have parent nodes, and attributes are not considered child nodes of an element; for many Node properties, they will return null.
Attr Object Properties
| Property | Description |
|---|---|
| baseURI | Returns the absolute base URI of an element |
YouTip