Programmer's Guide (《编程指南》) > Interfaces > W3C NamedNodeMap interface > length attribute
  
length attribute
The number of nodes in this map. The range of valid child node indices is 0 to length-1 inclusive.
length
Access
read-only
Returns
unsigned long