A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/Node/attributes below:

attributes ยท WebPlatform Docs

attributes Summary

Associatve array containing the attributes of node.

Property of dom/Nodedom/Node

Syntax

Note: This property is read-only.

var result = element.attributes;
Return Value

Returns an object of type

NamedNodeMap that allows to access attributes through their names.

Usage
 Retrieve a listing of ALL Nodes of an element, including developer defined attributes and data- prefixed attributes.

The depreciated presentational attributes are datafld, datasrc, marginwidth, marginheight, allowtransparency, vspace, hspace, height, width, align, valign, alink, link, vlink, background, bgcolor, color, fgcolor, border, cellpadding, cellspacing, clear, frameborder, nowrap, scrolling

Notes

For backwards compatibility first test if an attribute Node is null. Binary attributes may or may not have a value

Related specifications
Document Object Model (DOM) Level 3 Core Specification
W3C Recommendation
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4