Re: Text selector [was Re: breaking overflow]

>>> I also assume that it operates on all descendant text nodes  
>>> (though still not crossing element boundaries)
>>>
>>> [...]
>>>
>>> Because there are no text nodes containing "bar".
>>
>> Right. That is how I was imagining it.
>
> What if "bar" is split over two adjacent textnodes in the DOM?

If "bar" is split over two adjacent text nodes (e.g "b ar"), it could  
be matched by ::text(b ar){}.
I personally can't envisage a use case where crossing textnodes (or  
element boundaries, for that matter) in order to match a single word,  
would be beneficial.

Received on Monday, 4 January 2010 01:25:17 UTC