HTML and CSS Reference
In-Depth Information
15.3.4 The Whitespace Bug
When testing a document's nodes, be careful of the whitespace bug! If you break lines,
for example, between the <head> and <title> tags, the whitespace is considered a text
node and your output might not be consistent. There are a number of Web sites that deal
with the whitespace bug and offer programmatical ways to solve the problem when tra-
versing the DOM tree. See https://developer.mozilla.org/en/Whitespace_in_the_DOM (see
Figure 15.5) .
Figure 15.5 Mozilla explains the whitespace bug.
 
 
Search WWH ::




Custom Search