Hi, everybody
I use only Mozilla Firefox for almost 2 years, and I noticed that it's
javascript sees more childNodes than other browsers, because it
considers textnodes and commentnodes too...
It would be good if W3C Standards had *2 groups of methods* to deal with
nodes:
In the Basic group, *firstChild, lastChild and childNodes[n]* as "most
browsers do", should deal ONLY with ELEMENT NODES... ignoring the rest
In a Special group, (for instance:) *firstChildSp, lastChildSp and
childNodesSp[n]* would return ALL TYPES OF NODES.
This way,* ONLY if a programmer is interested in all nodes, including
the textnodes *(that in general only disturb the process) he will use
the special functions that end with "Sp" an return ANY type of nodes.
Sp meaning Special, because it will consider textnodes, elementnodes and
commentnodes...
In the Basic group, *firstChild, lastChild and childNodes[n]* as "most
browsers do", should deal ONLY with ELEMENT NODES... ignoring the rest
What about ?
Sergio A.