Baseline Widely available
removeNamedItem()
㯠NamedNodeMap
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ã¡ã½ããã§ãæå®ãããååã«å¯¾å¿ãã Attr
ããããããåãé¤ãã¾ãã
removeNamedItem(attrName);
弿°
attrName
ãããããåãé¤ã屿§ã®ååã
åãé¤ããã Attr
ã
NotFoundError
DOMException
æå®ãããååã®å±æ§ããªãã£ãå ´åã«çºçãã¾ãã
<pre test="testValue"></pre>
const pre = document.getElementsByTagName("pre")[0];
const attrMap = pre.attributes;
let result = `The 'test' attribute initially contains '${attrMap["test"].value}'.\n`;
result += "We remove it.\n\n";
attrMap.removeNamedItem("test");
if (attrMap.getNamedItem("test")) {
result += "And 'test' still exists.";
} else {
result += "And 'test' is no more to be found.";
}
pre.textContent = result;
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§
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