This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

getAttributeNodeNS

Summary

Gets an attribute node that matches the specified namespace and name.

Method of dom/Elementdom/Element

Syntax

var attributeNode = element.getAttributeNodeNS(namespace, name);

Parameters

namespace

Data-type
String

The namespace URI that defines the desired attribute, or a null value.

name

Data-type
Blob

The name of the desired attribute, or a null value.

Return Value

Returns an object of type DOM NodeDOM Node

An attribute node that matches the specified namespace and attribute name, or a null value when no attribute node is found.

Related specifications

DOM Level 3 Core
Recommendation

Attributions