Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

nodeName

Description

The nodeName of Node for JS returns a string appropriate for the type of node.

TypeDescription
ElementIts HTML-uppercased qualified name
AttrIts qualified name
An exclusive Text node"#text"
CDATASection"#cdata-section"
ProcessingInstructionIts target
Comment"#comment"
Document"#document"
DocumentTypeIts name
DocumentFragment"#document-fragment"

Syntax

node.nodeName

Examples

1 · Element

2 · Attr

3 · Text

4 · CDATASection

5 · ProcessingInstruction

6 · Comment

7 · Document

8 · DocumentType

9 · DocumentFragment

nodeType

baseURI

childNodes

cloneNode

compareDocumentPosition

contains

firstChild

getRootNode

hasChildNodes

isConnected

isEqualNode

lastChild

nextSibling

nodeType

normalize

ownerDocument

parentElement

parentNode

previousSibling

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu