<?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>8750</bug_id>
          
          <creation_ts>2006-05-05 05:44:36 -0700</creation_ts>
          <short_desc>w3c.org: incorrect recovery from unclosed &lt;a&gt; elements</short_desc>
          <delta_ts>2007-05-14 22:27:15 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/charmod-norm/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41313</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-05 05:44:36 -0700</bug_when>
    <thetext>Steps to reproduce:
1. Open http://www.w3.org/TR/charmod-norm/
2. Click on an editor name

Results: the whole paragraph turns red. Doesn&apos;t happen in WinIE or Firefox.

This is related to W3C serving XHTML documents with self-closing &lt;a&gt; tags as text/html - looks like WebKit recovery doesn&apos;t match other browsers. I&apos;ve seen this problem with many other W3C documents besides charmod-norm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41314</commentid>
    <comment_count>1</comment_count>
      <attachid>8123</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-05-05 05:45:08 -0700</bug_when>
    <thetext>Created attachment 8123
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10197</commentid>
    <comment_count>2</comment_count>
      <attachid>14519</attachid>
    <who name="">mitz</who>
    <bug_when>2007-05-12 09:40:56 -0700</bug_when>
    <thetext>Created attachment 14519
Test case with explicit close tag

Although typically seen with &lt;a&gt;, this can be seen with the other residual style tags (which allow nesting). The root cause for the bug in this case is the following, from handleResidualStyleCloseTagAcrossBlocks():

// Find the element that crosses over to a higher level.   For now, if there is more than
// one, we will just give up and not attempt any sort of correction.  It&apos;s highly unlikely that
// there will be more than one, since &lt;p&gt; tags aren&apos;t allowed to be nested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10208</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-05-12 14:58:37 -0700</bug_when>
    <thetext>Hah.  Yeah I thought this could return to get me some day when I wrote that comment. :)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9977</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-05-14 22:27:15 -0700</bug_when>
    <thetext>Fixed in r21472.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>8123</attachid>
            <date>2006-05-05 05:45:08 -0700</date>
            <delta_ts>2006-05-05 05:45:08 -0700</delta_ts>
            <desc>test case</desc>
            <filename>unclosed-a.html</filename>
            <type>text/html</type>
            <size>306</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIvaHRtbDQvc3RyaWN0LmR0ZCI+CjxodG1sPgoKPGhlYWQ+CiA8c3R5bGUg
dHlwZT0idGV4dC9jc3MiPgogIGEgeyBjb2xvcjogI0MwMDsgYmFja2dyb3VuZDogdHJhbnNwYXJl
bnQgfQogPC9zdHlsZT4KPC9oZWFkPgoKPGJvZHk+CjxwPjxhPlJFRDwvcD4KUkVECjxkaXY+CiAg
IFJFRAogICA8cD5SRUQ8YT5SRUQ8L2E+QkxBQ0s8L3A+CiAgIEJMQUNLCjwvZGl2PgpCTEFDSwo8
L2JvZHk+CkJMQUNLCjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14519</attachid>
            <date>2007-05-12 09:40:56 -0700</date>
            <delta_ts>2007-05-12 09:40:56 -0700</delta_ts>
            <desc>Test case with explicit close tag</desc>
            <filename>8750 test case.html</filename>
            <type>text/html</type>
            <size>307</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogICAgPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KICAgICAgICBpIHsgZm9u
dC1zdHlsZTogbm9ybWFsOyBjb2xvcjogcmVkIH0KICAgIDwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+
CiAgICBCTEFDSwogICAgPGk+CiAgICAgICAgUkVECiAgICAgICAgPGRpdj4KICAgICAgICAgICBS
RUQKICAgICAgICAgICA8ZGl2PgogICAgICAgICAgICAgICBSRUQKICAgICAgICAgICA8L2k+CiAg
ICAgICAgICAgQkxBQ0sKICAgICAgIDwvZGl2PgogICAgICAgQkxBQ0sKICAgIDwvZGl2PgogICAg
QkxBQ0sKPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>