Performance improvement of ElementStack.inScope()
Set foreign attribute prefix
Emit Characters instead of SpaceCharacters, refactor TreeBuilder

Add active formatting element limit check. Fix adoptionAgencyEndTag bug.
Order insertion modes.
Handle UTF-16 characters in EntityParser
Fix serializing for test

Use localName instead of nodeName, do not serialize attribute namespaces
Use jsdom object constructors insead of public DOM factory methods