W3C home > Mailing lists > Public > www-style@w3.org > July 2011

Re: CSS regexes

From: Alexander Shpack <shadowkin@gmail.com>
Date: Tue, 19 Jul 2011 00:22:28 +0300
Message-ID: <CAK4xKXmbV73VV-qX8CZ4pGyMz4PR2t3BE5MQuJc41L9RX2tpSw@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: jwl@worldmusic.de, www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:42 GMT