[Bug 25294] New: DOMParser.parseFromString with application/whatever+xml

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25294

            Bug ID: 25294
           Summary: DOMParser.parseFromString with
                    application/whatever+xml
           Product: WHATWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM Parsing and Serialization
          Assignee: Ms2ger@gmail.com
          Reporter: tffy@free.fr
        QA Contact: sideshowbarker+domparsingspec@gmail.com
                CC: mike@w3.org, public-webapps-bugzilla@w3.org,
                    www-dom@w3.org

The specification disallows any type for DOMParser.parseFromString that isn't
enumerated. That means anything except SVG and XHTML has to pretend to be
generic XML, even though SVG and XHTML don't actually get any special treatment
from the algorithm, so why not let other XML types be honest about what they
are and use their full MIME type?
Right now Webkit browsers actually behave that way (i.e. you can use
"application/whatever+xml" as the second argument to parseFromString and they
won't throw an error), while Firefox follows the spec to the letter.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 8 April 2014 21:03:29 UTC