A few bugfixe (mainly for webkit bugs, but non only)
Imported w3c tests, and added polyfill to most