Re: CSS regexes

On Mon, Jul 18, 2011 at 11:58 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>
> 1. Does it match across element boundaries?  If so, it'll be a lot
> slower.  If not, it's much less useful.
>
> 2. Does it match across textnodes?  Even when the page *looks* like
> it's just continuous text, the text may actually be broken across
> separate textnodes.  This has the same implications as the previous,
> except it's more confusing because you can only tell when a run of
> text is broken into multiple textnodes by examining it from script.
>

IMHO, ::regex behavior is very close to document.createRange
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html


-- 
s0rr0w

Received on Monday, 18 July 2011 21:23:04 UTC