特点:
1. nodeType 的值为1.
2. nodeName 的值为元素的标签名(大写);
3. nodeValue 的值为null.
4. parentNode 可能是Element、Text、Comment、ProcessingInstruction、CDATASection、EntityReference。
例:
<div id="div1">hha</div>var div = document.getElementById("div1");
alert(div.tagName); //"DIV"
alert(div.tagName == div.nodeName); //true