• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint