jindw / xmldom

A PURE JS W3C Standard based(XML DOM Level2 CORE) DOMParser and XMLSerializer.
Other
819 stars 265 forks source link

Allow xhtml+xml in entities test #208

Closed fchasen closed 2 years ago

fchasen commented 7 years ago

xhtml is often served with the mime type of application/xhtml+xml which isn't picked up with the current regex. This add a check for +xml at then end of the regex test.

Fixes https://github.com/jindw/xmldom/pull/205

elad-yosifon commented 6 years ago

242 fixes this as well