DOM tests - attributes

Back to index.

Spec

attributes[index]

attributes[name]

Attribute name

Attribute value

getAttribute

getAttributeNode

hasAttribute

hasAttributes

Test area

Test paragraph

The test paragraph has the following attributes:

	testAttribute="ppk"
	id="test"
	onclick="alert('Yay!')"
	style="color: green"
	align="right"