Add w3c test, add document properties
Fix empty doctype attributes "publicId"/"systemId"