<html xmlns="http://www.w3.org/1999/xhtml" a0:Name="SuikaWiki" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:Version="0.9"><head></head><body><section><h1>nodeName 属性 (DOM 1+ Node 界面)</h1><p><a0:anchor-end a0:anchor="1">[1]</a0:anchor-end> <ruby>節<rt>ノード</rt></ruby>名を返します。 <a0:anchor>XML</a0:anchor>
の生成規則で言うと <code class="ABNF"><a0:anchor>Name</a0:anchor></code> になる部分です。</p><p>(<a0:anchor>XML名前空間</a0:anchor>で言えば <code class="ABNF"><a0:anchor>QName</a0:anchor></code>
の部分です。但し DOM では XML 名前空間でない文書も扱えますから、
<code class="XML">QName</code> として適当な値が得られるかは分かりません。)</p><p>この属性は <a0:anchor>DOM 1</a0:anchor>+ です。 
(<a0:anchor>DOM 2</a0:anchor> 以上では、名前空間に対応した <code class="DOMa"><a0:anchor>localName</a0:anchor></code>, 
<code class="DOMa"><a0:anchor>namespaceURI</a0:anchor></code>, <code class="DOMa"><a0:anchor>prefix</a0:anchor></code>
を使ったほうが良いでしょう。)</p><p>この属性は読取専用です。得られる値は <code class="DOM"><a0:anchor>DOMString</a0:anchor></code>
型です。</p><p><a0:anchor-end a0:anchor="2">[2]</a0:anchor-end> 節の種類と得られる値:<table><tbody><tr><td>界面</td><td><code class="DOMa">nodeName</code></td></tr><tr><td><code class="DOMi"><a0:anchor>Attr</a0:anchor></code></td><td>属性値</td></tr><tr><td><code class="DOMi"><a0:anchor>CDATASection</a0:anchor></code></td><td><code class="DOM">#cdata-section</code></td></tr><tr><td><code class="DOMi"><a0:anchor>Comment</a0:anchor></code></td><td><code class="DOM">#comment</code></td></tr><tr><td><code class="DOMi"><a0:anchor>Document</a0:anchor></code></td><td><code class="DOM">#document</code></td></tr><tr><td><code class="DOMi"><a0:anchor>DocumentFragment</a0:anchor></code></td><td><code class="DOM">#document-fragment</code></td></tr><tr><td><code class="DOMi"><a0:anchor>DocumentType</a0:anchor></code></td><td>文書要素名</td></tr><tr><td><code class="DOMi"><a0:anchor>Element</a0:anchor></code></td><td>要素型名</td></tr><tr><td><code class="DOMi"><a0:anchor>Entity</a0:anchor></code></td><td>実体名</td></tr><tr><td><code class="DOMi"><a0:anchor>EntityReference</a0:anchor></code></td><td>被参照実体名</td></tr><tr><td><code class="DOMi"><a0:anchor>Notation</a0:anchor></code></td><td>記法名</td></tr><tr><td><code class="DOMi"><a0:anchor>ProcessingInstruction</a0:anchor></code></td><td>対象名</td></tr><tr><td><code class="DOMi"><a0:anchor>Text</a0:anchor></code></td><td><code class="DOM">#text</code></td></tr></tbody></table></p><p>仕様書:<ul><li>[DOM1]</li><li>[DOM2] <em>Document Object Model Core</em> <a0:anchor-external a0:resScheme="URI" a0:resParameter="http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-F68D095">http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-F68D095</a0:anchor-external>
<a0:form ref="comment"></a0:form></li></ul></p></section><section><h1>メモ</h1><p><a0:anchor-end a0:anchor="3">[3]</a0:anchor-end> <cite xml:lang="en">Fix #171: Add Attr#nodeName as an alias for name · whatwg/dom@90427aa</cite>
(<time>2016-02-23 11:05:53 +09:00</time> 版)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://github.com/whatwg/dom/commit/90427aa0aa267da88937fc83fb9023eb99f4dbcd">https://github.com/whatwg/dom/commit/90427aa0aa267da88937fc83fb9023eb99f4dbcd</a0:anchor-external></p><p><a0:anchor-end a0:anchor="4">[4]</a0:anchor-end> <cite xml:lang="en">Make Attr inherit from Node again</cite>
(<a0:anchor>annevk</a0:anchor>著, <time>2016-08-19 21:44:07 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://github.com/whatwg/dom/commit/625a0747f137454c155a7b577a9e45be1aa35a34">https://github.com/whatwg/dom/commit/625a0747f137454c155a7b577a9e45be1aa35a34</a0:anchor-external></p><p><a0:anchor-end a0:anchor="5">[5]</a0:anchor-end> <cite xml:lang="en">Define nodeName as &quot;#cdata-section&quot; for CDATASection nodes</cite>
(<a0:anchor>foolip</a0:anchor>著, <time>2016-08-17 20:34:46 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://github.com/whatwg/dom/commit/67a7550d757b4194a8248b336944292586fdc117">https://github.com/whatwg/dom/commit/67a7550d757b4194a8248b336944292586fdc117</a0:anchor-external></p><p><a0:anchor-end a0:anchor="6">[6]</a0:anchor-end> <cite xml:lang="en">Stop defining nodeName in terms of tagName</cite>
(<a0:anchor>annevk</a0:anchor>著, <time>2018-03-13 17:34:59 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://github.com/whatwg/dom/commit/8e754b524b277b186503ed53d135b647b02d772b">https://github.com/whatwg/dom/commit/8e754b524b277b186503ed53d135b647b02d772b</a0:anchor-external></p><p><a0:anchor-end a0:anchor="7">[7]</a0:anchor-end> <cite xml:lang="en">Stop defining nodeName in terms of tagName · Issue #297 · whatwg/dom</cite>
(<time>2018-03-15 16:22:04 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://github.com/whatwg/dom/issues/297">https://github.com/whatwg/dom/issues/297</a0:anchor-external></p><p><a0:anchor-end a0:anchor="8">[8]</a0:anchor-end> <cite xml:lang="en">Stop defining nodeName in terms of tagName by annevk · Pull Request #593 · whatwg/dom</cite>
(<time>2018-03-15 16:22:28 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://github.com/whatwg/dom/pull/593">https://github.com/whatwg/dom/pull/593</a0:anchor-external></p></section></body></html>