Re: Text selector [was Re: breaking overflow]

On 1/6/10 10:22 AM, Boris Zbarsky wrote:
> For example:
>
> <p>
> This is <span></span> text
> </p>
>
> I assume that you would want the first textnode to claim to have a
> trailing space and the second textnode to claim to have a leading space
> even though after CSS whitespace collapsing there is in fact only one
> space in the example above between "is" and "text"?

And furthermore, it sounds like you'd expect the first textnode to claim 
to have a leading space even though after CSS whitespace collapsing in 
the above example there is in fact no space there?  Note that deciding 
that there is no space there involves information that is not present in 
any of the textnodes per se.

As far as that goes, how, if at all, would you expect your 
whitespace-collapsing thing to behave on this example:

   <div>
     This is <div></div> text
   </div>

Would it give the same results as with the <span> example above?  If 
not, why not?  If yes, what results?

-Boris

Received on Wednesday, 6 January 2010 15:30:15 UTC