dom: bunch of DOM fixes
spec: fix up on specs