Is there any information on how to correctly handle white spaces in XHTML (1.0 Transitional)? It seems as if XHTML does not use standard XML white space handling.
Edit: Mayby I was a bit unprecise about what I was exactly looking for. I’m more interested in how an element gets rendered than how it would be processed by an XML processor.
For example the following will render with 1 white space inbetween:
<em> em content </em> following text
The situation gets more complicated if the space actually has its own formatting, for example <a href="http://www.google.de"> content of the hyperlink </a> content after the hyperlink will have an underlined space at the end of the hyperlink, while <a href="http://www.google.de"> content of the hyperlink</a> content after the hyperlink<br /> will not underline the the space.
It seems as if the space is always appended to the previous formatting scope and white spaces are handled over (inline) element begin and end tags. But this is based solely on testing and I was wondering if there is some kind of specification on how excatly this behaves.
It seems that there is no real documentation on how white spaces are rendered in XHTML. Here is what I found out by experiment:
This is all I could figure out. It is kind of sad that the XHTML specifiaction does not contain information about rendering of white spaces.