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