improve DOMParser to throw standard SyntaxError as per W3C
fix DOMParser