While the code that did this referred to the HTML spec, other browsers appear not to have this behavior when parsing XML, and it breaks a WPT subtest. This change does not appear to break any tests, and fixes 1 WPT subtest.