<?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>69994</bug_id>
          
          <creation_ts>2011-10-12 20:50:50 -0700</creation_ts>
          <short_desc>Reparse invalid XHTML documents as HTML</short_desc>
          <delta_ts>2011-10-13 14:13:22 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://codecino.com/lab/yellow-screen-of-death/invalid.xhtml</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="Paul Irish">paulirish</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>code.vineet</cc>
    
    <cc>mathias</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>482986</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Irish">paulirish</who>
    <bug_when>2011-10-12 20:50:50 -0700</bug_when>
    <thetext>Opera recently announced they were ending draconian error handling of invalid XHTML documents. 
http://my.opera.com/ODIN/blog/2011/09/28/no-more-xml-parsing-failed-errors

If a document is XHTML, served as application/xhtml+xml, and is not wellformed, then in Opera&apos;s case, they will reparse as HTML.

WebKit should do the same. Draconian error handling is fine for the developer, but users gain no benefit at all. 
They want to see the content at a site, not a &quot;Not wellformed Document&quot; error page.

It&apos;s best for users to route XHTML parsing errors to the inspector and deliver the content to the screen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483333</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-10-13 11:16:25 -0700</bug_when>
    <thetext>It&apos;s still not clear to me what&apos;s the benefit here. If the developer wants to use HTML, why not just serve the content as HTML?

Second attempt at parsing will just cause proliferation of broken content that will forever be slow to display, ultimately hurting users.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483337</commentid>
    <comment_count>2</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2011-10-13 11:24:56 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Second attempt at parsing will just cause proliferation of broken content that will forever be slow to display, ultimately hurting users.

Slow to display &gt; displaying nothing at all, IMHO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483464</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2011-10-13 14:03:09 -0700</bug_when>
    <thetext>I also don&apos;t really get the reason for doing this.  If we wanted to do something like this, defining error-handing for XML (XML5!) seems like the way to go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483472</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-10-13 14:13:22 -0700</bug_when>
    <thetext>I agree.  We should either define error handling for XHTML or authors should use HTML if they want error handling.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>