<?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>5987</bug_id>
          
          <creation_ts>2005-12-07 04:11:31 -0800</creation_ts>
          <short_desc>&lt;applet&gt; is broken in xhtml</short_desc>
          <delta_ts>2019-02-06 09:03:27 -0800</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Eric Seidel (no email)">eric</assigned_to>
          <cc>cdumez</cc>
    
    <cc>c.petersen87</cc>
    
    <cc>darin</cc>
    
    <cc>julien.palmas</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25651</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 04:11:31 -0800</bug_when>
    <thetext>&lt;applet&gt; is broken in xhtml

closeRenderer() is never being called by the xml parser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25652</commentid>
    <comment_count>1</comment_count>
      <attachid>4985</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 04:12:35 -0800</bug_when>
    <thetext>Created attachment 4985
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25653</commentid>
    <comment_count>2</comment_count>
      <attachid>4985</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 04:19:10 -0800</bug_when>
    <thetext>Comment on attachment 4985
Proposed patch

This line should actually probably go after the implicit table node escaping
code right below it in the current patch.  However another question raised by
this patch, is why are we supporting implicit table element construction in
xhtml?

Hyatt or darin should look at this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25654</commentid>
    <comment_count>3</comment_count>
      <attachid>4985</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 04:25:58 -0800</bug_when>
    <thetext>Comment on attachment 4985
Proposed patch

Actually, I think the logic should be re-written to step out of implicit
elements, then call closeRenderer(), then step out to your parent... right now
I bet &lt;applet&gt;&lt;tr /&gt; &lt;/applet&gt; will fail. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25655</commentid>
    <comment_count>4</comment_count>
      <attachid>4985</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 04:30:00 -0800</bug_when>
    <thetext>Comment on attachment 4985
Proposed patch

Actually, implicit elements (&lt;tbody&gt;) are only created between &lt;table&gt; and
&lt;tr&gt;, so we&apos;re safe here.  However the fix would still probably be &quot;more
correct&quot; to do what I mentioned above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25656</commentid>
    <comment_count>5</comment_count>
      <attachid>4985</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 04:35:52 -0800</bug_when>
    <thetext>Comment on attachment 4985
Proposed patch

Posting a better patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25657</commentid>
    <comment_count>6</comment_count>
      <attachid>4986</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 04:36:28 -0800</bug_when>
    <thetext>Created attachment 4986
Better patch (correctly handles implicit elements)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25658</commentid>
    <comment_count>7</comment_count>
      <attachid>4986</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 04:37:07 -0800</bug_when>
    <thetext>Comment on attachment 4986
Better patch (correctly handles implicit elements)

Here is a better patch which correctly handles implicit elements.  Dave or
Darin should take a look at this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25666</commentid>
    <comment_count>8</comment_count>
      <attachid>4986</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-12-07 09:58:30 -0800</bug_when>
    <thetext>Comment on attachment 4986
Better patch (correctly handles implicit elements)

There are three changes here.

One is to call closeRenderer. That looks fine.

Another is to set m_currentNode to the grandparent of the implicit node rather
than the parent of the implicit node. That also seems fine, because we need to
close the element.

The third change is to remove NULL checks. That one worries me a bit, but I
guess we can count on not getting an endElement callback unless we have
successfully started and element. It&apos;s worth looking closely at that. What
happens if the startElement fails?

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25673</commentid>
    <comment_count>9</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-07 14:44:32 -0800</bug_when>
    <thetext>I could add an ASSERT that m_currentNode-&gt;parentNode() != 0 if you&apos;d like.  But from what I understand 
this code never should get called in an error case.  I&apos;ve also tried with some xml docs missing opening 
tags, and not hit any crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25697</commentid>
    <comment_count>10</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-08 01:06:49 -0800</bug_when>
    <thetext>*** Bug 5835 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25740</commentid>
    <comment_count>11</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-08 18:26:46 -0800</bug_when>
    <thetext>*** Bug 3332 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1502972</commentid>
    <comment_count>12</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:03:27 -0800</bug_when>
    <thetext>Mass moving XML DOM bugs to the &quot;DOM&quot; Component.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4985</attachid>
            <date>2005-12-07 04:12:35 -0800</date>
            <delta_ts>2005-12-07 04:36:28 -0800</delta_ts>
            <desc>Proposed patch</desc>
            <filename>applet.patch</filename>
            <type>text/plain</type>
            <size>640</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">SW5kZXg6IGtodG1sL3htbC94bWxfdG9rZW5pemVyLmNwcAo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAv
Y3ZzL3Jvb3QvV2ViQ29yZS9raHRtbC94bWwveG1sX3Rva2VuaXplci5jcHAsdgpyZXRyaWV2aW5n
IHJldmlzaW9uIDEuNTQKZGlmZiAtcCAtdSAtcjEuNTQga2h0bWwveG1sL3htbF90b2tlbml6ZXIu
Y3BwCi0tLSBraHRtbC94bWwveG1sX3Rva2VuaXplci5jcHAJMjggTm92IDIwMDUgMTg6MjM6NDYg
LTAwMDAJMS41NAorKysga2h0bWwveG1sL3htbF90b2tlbml6ZXIuY3BwCTcgRGVjIDIwMDUgMTE6
NTA6MjkgLTAwMDAKQEAgLTM3NSw2ICszNzUsNyBAQCB2b2lkIFhNTFRva2VuaXplcjo6ZW5kRWxl
bWVudE5zKCkKIAogICAgIGlmIChtX2N1cnJlbnROb2RlLT5ub2RlVHlwZSgpID09IE5vZGU6OlRF
WFRfTk9ERSkKICAgICAgICAgZXhpdFRleHQoKTsKKyAgICBtX2N1cnJlbnROb2RlLT5jbG9zZVJl
bmRlcmVyKCk7CiAgICAgaWYgKG1fY3VycmVudE5vZGUtPnBhcmVudE5vZGUoKSAhPSAwKSB7CiAg
ICAgICAgIGRvIHsKICAgICAgICAgICAgIG1fY3VycmVudE5vZGUgPSBtX2N1cnJlbnROb2RlLT5w
YXJlbnROb2RlKCk7Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4986</attachid>
            <date>2005-12-07 04:36:28 -0800</date>
            <delta_ts>2005-12-07 09:58:30 -0800</delta_ts>
            <desc>Better patch (correctly handles implicit elements)</desc>
            <filename>applet.patch</filename>
            <type>text/plain</type>
            <size>946</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">SW5kZXg6IGtodG1sL3htbC94bWxfdG9rZW5pemVyLmNwcAo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAv
Y3ZzL3Jvb3QvV2ViQ29yZS9raHRtbC94bWwveG1sX3Rva2VuaXplci5jcHAsdgpyZXRyaWV2aW5n
IHJldmlzaW9uIDEuNTQKZGlmZiAtcCAtdSAtcjEuNTQga2h0bWwveG1sL3htbF90b2tlbml6ZXIu
Y3BwCi0tLSBraHRtbC94bWwveG1sX3Rva2VuaXplci5jcHAJMjggTm92IDIwMDUgMTg6MjM6NDYg
LTAwMDAJMS41NAorKysga2h0bWwveG1sL3htbF90b2tlbml6ZXIuY3BwCTcgRGVjIDIwMDUgMTI6
MzU6MTkgLTAwMDAKQEAgLTM3NSwxMiArMzc1LDEwIEBAIHZvaWQgWE1MVG9rZW5pemVyOjplbmRF
bGVtZW50TnMoKQogCiAgICAgaWYgKG1fY3VycmVudE5vZGUtPm5vZGVUeXBlKCkgPT0gTm9kZTo6
VEVYVF9OT0RFKQogICAgICAgICBleGl0VGV4dCgpOwotICAgIGlmIChtX2N1cnJlbnROb2RlLT5w
YXJlbnROb2RlKCkgIT0gMCkgewotICAgICAgICBkbyB7Ci0gICAgICAgICAgICBtX2N1cnJlbnRO
b2RlID0gbV9jdXJyZW50Tm9kZS0+cGFyZW50Tm9kZSgpOwotICAgICAgICB9IHdoaWxlIChtX2N1
cnJlbnROb2RlICYmIG1fY3VycmVudE5vZGUtPmltcGxpY2l0Tm9kZSgpKTsKLSAgICB9Ci0vLyAj
IyMgIGVsc2UgZXJyb3IKKyAgICB3aGlsZSAobV9jdXJyZW50Tm9kZS0+aW1wbGljaXROb2RlKCkp
CisgICAgICAgIG1fY3VycmVudE5vZGUgPSBtX2N1cnJlbnROb2RlLT5wYXJlbnROb2RlKCk7Cisg
ICAgbV9jdXJyZW50Tm9kZS0+Y2xvc2VSZW5kZXJlcigpOworICAgIG1fY3VycmVudE5vZGUgPSBt
X2N1cnJlbnROb2RlLT5wYXJlbnROb2RlKCk7CiB9CiAKIHZvaWQgWE1MVG9rZW5pemVyOjpjaGFy
YWN0ZXJzKGNvbnN0IHhtbENoYXIgKnMsIGludCBsZW4pCg==
</data>
<flag name="review"
          id="971"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>