_Testers wanted for new extension_

Hi all, I've just written a first draft for a new (and I think handy) extension
- findByCSS.

It does exactly what is says on the tin. Assuming you're in an HTML document, it
allows you to specify a CSS selector and it will find all of the matching HTML
elements.

It needs some testing, and a final rewrite to tidy the code up a bit. Still, it
does work!

*Limitations*
Only works with XHTML, not HTML 4 (except empty tags which are ok). So a
<img src="test"> tag will be ok, but doing
<ul><li>one<li>two</ul> or <p>foo<p>bar won't work.

*CSS Selector Features*
Handles most CSS3 selectors (more in progress).
Examples of selectors:

p > img[alt]
ul li:first-child + li
a[href$=.php]
div#sidebar li > a


Comments needed, as well as testing.

Thanks
grigri

-- 
<http://forum.pspad.com/read.php?2,35782,43061>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem