Chapter 10 DOM Core

This chapter contains a reference to all of the DOM Level 2 Core language bindings for ECMAScript (that is, Netscape JavaScript and MS JScript). The DOM Level 2 Core API provides the programmer with tools to create valid and well-formed XML documents. In addition, functionality exists in the API to navigate XML documents as well as modify the underlying structure. For those familiar with the DOM Java language bindings, you will notice that the ECMAScript bindings bear a striking resemblance to the Java DOM API.

Attr

JavaScript 1.5+, JScript 5.0+

Nav6+, IE5+

 

Syntax

Core DOM object.

Description

Attr represents an attribute in an Element. Attr inherits all methods and properties from Node. DOM considers Attrs not to be part ...

Get Pure JavaScript, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.