W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: Text selector [was Re: breaking overflow]

From: James Hopkins <james@idreamincode.co.uk>
Date: Mon, 4 Jan 2010 01:24:45 +0000
Cc: Brad Kemper <brad.kemper@gmail.com>, www-style list <www-style@w3.org>
Message-Id: <75FDE9B4-6C75-4066-A71A-D1AB4EED268A@idreamincode.co.uk>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
>>> 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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:42 UTC