From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/element/removeattributenode/index.html | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 files/ja/web/api/element/removeattributenode/index.html (limited to 'files/ja/web/api/element/removeattributenode') diff --git a/files/ja/web/api/element/removeattributenode/index.html b/files/ja/web/api/element/removeattributenode/index.html new file mode 100644 index 0000000000..b85d06ff16 --- /dev/null +++ b/files/ja/web/api/element/removeattributenode/index.html @@ -0,0 +1,45 @@ +--- +title: element.removeAttributeNode +slug: Web/API/Element/removeAttributeNode +tags: + - DOM + - Gecko + - 翻訳中 +translation_of: Web/API/Element/removeAttributeNode +--- +

{{ ApiRef("DOM") }}

+ +

Summary

+ +

removeAttributeNode removes the specified attribute from the current element.

+ +

Syntax

+ +
removedAttr =element.removeAttributeNode(attributeNode)
+
+ + + +

Example

+ +
// <div id="top" align="center" />
+var d = document.getElementById("top");
+var d_align = d.getAttributeNode("align");
+d.removeAttributeNode(d_align);
+// align has a default value, center,
+// so the removed attribute is immediately
+// replaced: <div id="top" align="center" />
+
+ +

Notes

+ +

If the removed Attribute has a default value it is immediately replaced. The replacing attribute has the same namespace URI and local name, as well as the original prefix, when applicable.

+ +

{{ DOMAttributeMethods() }}

+ +

Specification

+ +

DOM Level 2 Core: removeAttributeNode (introduced in DOM Level 1 Core)

-- cgit v1.2.3-54-g00ecf