dom/builder: improve performance
spec: remove irrelevant spec