detect html5 doctype and make positional information exactly