<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>18220</bug_id>
          
          <creation_ts>2008-03-30 11:21:22 -0700</creation_ts>
          <short_desc>XHTML MIME type breaks layouts</short_desc>
          <delta_ts>2008-04-18 22:30:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Kay Summers">ksosjq102</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>mimisammarco</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75838</commentid>
    <comment_count>0</comment_count>
    <who name="Kay Summers">ksosjq102</who>
    <bug_when>2008-03-30 11:21:22 -0700</bug_when>
    <thetext>If I send valid XHTML content as application/xhtml+xml rather than text/html, numerous things go horribly wrong with the layout, especially with the interpretation of the body tag.

A simple example:

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
    &lt;head&gt;
        &lt;title&gt;Test&lt;/title&gt;
    &lt;/head&gt;
    &lt;body style=&quot;margin: 0px; width: 100%; height: 100%; background-color: #bbb;&quot;&gt;  
        Test
    &lt;/body&gt;
&lt;/html&gt;

When sent as XHTML, WebKit refuses to paint the background color across the entire background. Additional content will evoke strange margin behavior all around and nothing will render as expected. When sent as HTML, it does the right thing.

The one and only reason I care about this is because sending documents as application/xhtml+xml is required in order to get inline SVG to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76033</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-03-31 23:09:54 -0700</bug_when>
    <thetext>The behavior seen on this test is correct: the body is only as high as its content is. See, for example, &lt;http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html&gt; and &lt;http://www.mozilla.org/docs/web-developer/faq.html#xhtmldiff&gt;.

The other differences that you are seeing might be bugs or expected behavior, no way to tell without a test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78222</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-04-18 22:30:17 -0700</bug_when>
    <thetext>*** Bug 18503 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>