|Re: "Map" containing present elements? [message #724804 is a reply to message #724457]
||Tue, 13 September 2011 08:31
Registered: May 2011
Nitin Dahyabhai wrote on Mon, 12 September 2011 08:04|
If the cursor is between the father start and end tags, father is supposed to be the parent of what you insert.
Getting their content requires using the DOM API from org.w3c.dom.Node and its subinterfaces; #toString() has no such requirement.
Those are Text nodes in the DOM representing white space not contained under the "mother" and "father" Elements. There should be one trailing "father" as well.
Yes, ok, but I can not understand why in my NodeList I also get, as children elements, #text elements...
I mean...I get why I have in the NodeList...but is it possible to have only tag name inside NodeList?
For example only "father" and "mother"...nothing else, I do not want #text or #comment
[Updated on: Tue, 13 September 2011 08:57]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.07495 seconds