As soon as we create a semantic HTML parser, I'd say this should be moved to there and out of the default HTML parser.