Change tests to use assert
Convert str_replace to preg_replace
Fix test, move regexes to an array
Combine multiple regex into 1
Move regex map into SelectorDOM class
Start moving other elements, code style to PSR
use "is_a" to avoid fatal errors if not given an object"
moved everything into SelectorDOM class, retain select_elements for compat
more style fixes, use php5.4 arrays
renamed to selector.php
reformat test.selector.php
oops wrong argument order
removed some unsightly comments, the code is pretty clear
better error handling