W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2008

[whatwg] Differences between application/xhtml+xml and application/xml

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Tue, 13 May 2008 06:25:15 -0400
Message-ID: <6b9c91b20805130325q6964bc7wb46d67d95648089d@mail.gmail.com>
body.xhtml (served as application/xhtml+xml)
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script>
            window.onload = function() {
                alert(document.body);
            };
        </script>
    </head>
    <body>

    </body>
</html>

body.xml (served as application/xml)
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script>
            window.onload = function() {
                alert(document.body);
            };
        </script>
    </head>
    <body>

    </body>
</html>

With the latter, Firefox and Opera don't have document.body defined.
Safari does though.

Should Safari match Firefox and Opera or the other way around?

Either way, could you add a little comment in the spec saying that
although application/xml might work, there are catches.

-- 
Michael
Received on Tuesday, 13 May 2008 03:25:15 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:02 UTC