![]() |
|
|
+ Search |
![]()
|
Apr 16th, 2005 00:15
Martin Honnen,
The method normalize takes no argument and returns the XMLList object it
is called on after joining adjacent text nodes and removing empty text
nodes.
Here is an example:
var textList = <>0: Kibology for all.</>;
for (var i = 1; i <= 3; i++) {
textList[i] = i + ': Kibology for all.';
}
alert(textList.length()); // shows 4
textList.normalize();
alert(textList.length()); // shows 1