Anne van Kesteren wrote:

Thomas Broyer wrote:

(or any element using the CSS "white-space" property)

That is purely for presentation. You should not use it if you need whitespace to be preserverd for semantics. (In such cases xml:space would probably be more appropriate...)

Even if you use xml:space to make the parser preserve white space, unless the computed value of CSS 'white-space' is 'pre', a CSS renderer must collapse the white space.

xml:space controls whether the parser collapses white space or
not. CSS 'white-space' controls whether the white space passed
from the parser to the renderer is collapsed or not. If the
parser collapses whitespace, CSS will never see it.

~fantasai



Reply via email to