Pure English

 
Software
Training
Hints & links
 
Computing
Elettronics
Matemathics
Tai Ji Quan
Giada Adriani
 
Thesis
Notes
Reviews
 
Blister
Short stories
Novels
Guests
 
Games
Events
Work-e
Ma.Ste.R.
 
Links
Search
About me
Contacts
Site map
Bandiera inglese Bandiera italiana

The DOM shell

Help

Commands list
cd select the node passed as argument Remark.

The main difference between the structure of the file system and the DOM representing an HTML/XML file is that the DOM allows to have siblings with the same name. In order to distinguish such siblings, the shell append a number after the tag's name. This allows, for instance, to write cd p3 to enter the 3rd paragraph of a node.
Such number is virtual, since it does not appear in the original node
ls list children nodes (columns)
ls -l list children nodes (list)
ls -a list also text nodes (all)
ls -d list current node information (directory)
ls -dom list children nodes (DOM metadata)
ls -attr list children nodes (attributes)
pwd current path position
echo print a message on the console
help show links to the online help
clear clear console output
history show list of recent commands

You can also type any valid JavaScript command



References:  Node  Element  HTMLElement