This page is Almost Ready

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

removeAttributeNS

Summary

Removes a specified content attribute in a specified namespace from an element.

Method of dom/Elementdom/Element

Syntax

 element.removeAttributeNS(namespaceURI, name);

Parameters

namespaceURI

Data-type
String

The namespace name of the attribute to remove.

name

Data-type
String

The local name of the attribute to remove.

Return Value

No return value

Usage

 Use this method to remove a content attribute in a specified namespace from an element.

Notes

  • The attribute to remove may not exist in the first place.
  • Where namespaces are irrelevant, removeAttribute can be used instead.

Related specifications

Document Object Model (DOM) Level 3 Core
Recommendation
Document Object Model (DOM) Level 2 Core
Recommendation
DOM
Living Standard

Attributions