The normalize Method


The normalize Method

The normalize method enables you to merge adjacent text nodes in a document into a single node. Sometimes, when you're inserting text nodes into a document, you can end up with two or more side by side. That's not a problem for HTML browsers, but it can be for XML browsers. To fix this problem, you can merge adjacent text nodes with the normalize method. You can see the support for this method in Table 6.34.

Table 6.34. The normalize Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

normalize()

     

x

         

x

 

No return value



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net