|
Re: DOM : removeall nodes with xpath: msg#00031mozilla.devel.dom
rvj wrote: I think the problem you I wouldn't assume that nextSibling is any particular type of node, to be safe I would check its type e.g. node.nextSibling.nodeType == 3 whether it is a text node and if needed also check its content whether it is all whitespace. .. and can I always assume interleaved whitespace nodes are always created With Mozilla yes, if there are white space text nodes between element nodes then Mozilla models them in the document tree. MSXML for instance is different, it has an option to switch that on/off. -- Martin Honnen http://JavaScript.FAQTs.com/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: DOM : removeall nodes with xpath: 00031, rvj |
|---|---|
| Next by Date: | Re: How to load the Search Sidebar Panel using Javascript?: 00031, Brendan Eich |
| Previous by Thread: | Re: DOM : removeall nodes with xpathi: 00031, rvj |
| Next by Thread: | Re: How to load the Search Sidebar Panel using Javascript?: 00031, Brendan Eich |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |