updated to match current W3C spec
update unit test