Eric Palmitesta wrote:
Hi
> <p>
> { <b>hi</b> }
>
> <span class="blah">there</span>
> </p>
> yields 3 spaces between 'hi' and 'there', while
> <p>
> { <b>hi</b> }
> <span class="blah">there</span>
> </p>
> yields 0 spaces between 'hi' and 'there'?
In the later example, white space nodes around the curly braces and
the span element are discarded. In the former example, the text node
between the curly braces and the span element is not a white space node
anymore, because of the non-breakable space character. So it is added
to the result tree.
By the rules of space normalization in HTML, the withe spaces before
the nbsp or collapsed into one single space, then there is the nbsp,
then the collapsed white spaces after it: three spaces.
Regards,
--drkm
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general