Javascript Reference
Categories: Node

javascript Node ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE

@April 4, 2009, 2:46 a.m.

ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE,
DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE,
DOCUMENT_TYPE_NODE, ELEMENT_NODE,
ENTITY_NODE, ENTITY_REFERENCE_NODE,
NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE

Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 1  

 

Read-only  

This set of constants belongs to the root Node object of the W3C DOM, and is therefore inherited by all document-level nodes and elements. Each property corresponds to an integer value associated with the nodeType property of every DOM node. You can use these properties as a more plain-language way to indicate the node type your script is looking for in comparisons or similar operations.

 
Example
 
if (myObject.nodeType == document.ELEMENT_NODE) {
		  // process as an element here
		}
 
Value

Integer corresponding to DOM node type as follows.

 
Property nodeType Value
ELEMENT_NODE 1
ATTRIBUTE_NODE 2
TEXT_NODE 3
CDATA_SECTION_NODE 4
ENTITY_REFERENCE_NODE 5
ENTITY_NODE 6
PROCESSING_INSTRUCTION_NODE 7
COMMENT_NODE 8
DOCUMENT_NODE 9
DOCUMENT_TYPE_NODE 10
DOCUMENT_FRAGMENT_NODE 11
NOTATION_NODE 12
 
Default

Constant values (above).

Free House Trance Dance Mp3 album Buy Private FTP 1990-2013 ftp://91.121.68.38/
House, Progressive House, Electro House, Tech House, Deep House, Soulful House, Nu-Disco,
Techno, Minimal, Djs Chart and EXCLUSIVE ALBUM & TRACKS
Download 0days Music Private FTP: www.0daymusic.org
www.0dayvinyls.org
www.0daymusic.eu
www.filestube.eu
32 TB Music Download Tracks 320 HQ, Sorted Section (by style) mp3 ftp, Various Music Styles server
More then 200 new 0-DAY scene releases daily, Really fast download, no ads, no waiting time
Sample WEB, CD, CDM, CDR, CDS, vinyls, vsti files, 5 years music archives and more old, Buy Paypal
send FTP account user, friendly support, Direct download using FTP client or Web browser
Download Private FTP: Series TV Anime Games PC, 0DAY,ANIME,AUDIOBOOK,BLURAY,DVDR,EBOOK,MDVDR,MP3,MViD,NDS,
GAMES, TV-BLURAY,TV-DVDR,TV-DVDRIP,TV-HDRIP,TV-X264,TV-XVID,WII,WMV-HD,X264,XVID
MusicManiac - 7 months
Under moderation.
Solarikl - 10 months
Under moderation.
Dssnoosii - 10 months

Powered by Linode.