<?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>17023</bug_id>
          
          <creation_ts>2008-01-26 10:16:36 -0800</creation_ts>
          <short_desc>script element created with html element as parent</short_desc>
          <delta_ts>2010-09-20 09:58:39 -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>419.x</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>data:text/html,%3C!doctype%20html%3E%0A%3Cscript%3E%0Aif%20(document.getElementsByTagName(%22script%22)%5B0%5D.parentNode.tagName.toUpperCase()%20%3D%3D%20%22HEAD%22)%0A%09document.write(%22PASS%22)%0Aelse%0A%09document.write(%22FAIL%22)%0A%3C%2Fscript%3E</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>hyatt</cc>
    
    <cc>ian</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68307</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2008-01-26 10:16:36 -0800</bug_when>
    <thetext>As the above test case shows, the script element can be created with the html element as its parent. This apparently also exists in trunk, though I haven&apos;t tested this myself.

I&apos;ve occasionally seen link elements as a direct descendant of the html element, but I&apos;ve never been able to consistently reproduce this (even with a single page) — possibly related?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68313</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2008-01-26 12:43:10 -0800</bug_when>
    <thetext>Yeah, this does appear still in trunk, now I&apos;ve actually tested it myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71237</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-02-20 07:42:03 -0800</bug_when>
    <thetext>Occurs with Safari 2.0.4 (419.3) with original WebKit on Mac OS X 10.4.11 (8S165) as well.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71238</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-02-20 07:42:52 -0800</bug_when>
    <thetext>Also tested with a local debug build of WebKit r30353 with Safari 3.0.4 (523.12.2) on 10.4.11.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71280</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-02-20 13:00:13 -0800</bug_when>
    <thetext>What does HTML5 say?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71284</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2008-02-20 13:18:56 -0800</bug_when>
    <thetext>Do you want me to paste the entire HTML5 parsing section into the bug? :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71286</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-20 13:20:42 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; What does HTML5 say?

That &lt;script&gt; should behave like &lt;base&gt;, &lt;link&gt;, &lt;meta&gt; and &lt;style&gt; in the &quot;before head&quot; insertion mode and create an implicit &lt;head&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71288</commentid>
    <comment_count>7</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-02-20 13:22:33 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Do you want me to paste the entire HTML5 parsing section into the bug? :-)
&gt; 

Smartass. :)

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281464</commentid>
    <comment_count>8</comment_count>
      <attachid>68063</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-09-20 02:38:23 -0700</bug_when>
    <thetext>Created attachment 68063
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281612</commentid>
    <comment_count>9</comment_count>
      <attachid>68063</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-20 09:49:17 -0700</bug_when>
    <thetext>Comment on attachment 68063
Patch

Clearing flags on attachment: 68063

Committed r67857: &lt;http://trac.webkit.org/changeset/67857&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281613</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-20 09:49:22 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281618</commentid>
    <comment_count>11</comment_count>
      <attachid>68063</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-09-20 09:58:39 -0700</bug_when>
    <thetext>Comment on attachment 68063
Patch

Rejecting patch 68063 from commit-queue.

Unexpected failure when processing patch!  Please file a bug against webkit-patch.
Failed to run &quot;[&apos;./WebKitTools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;land-attachment&apos;, &apos;--force-clean&apos;, &apos;--non-interactive&apos;, &apos;--ignore-builders&apos;, &apos;--quiet&apos;, &apos;--parent-command=commit-queue&apos;, 68063]&quot; exit_code: 1
Last 500 characters of output:
68063&amp;action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=17023&amp;ctype=xml
Processing 1 patch from 1 bug.
Cleaning working directory
Updating working directory
Processing patch 68063 from bug 17023.
NOBODY (OOPS!) found in /Projects/CommitQueue/LayoutTests/ChangeLog does not appear to be a valid reviewer according to committers.py.
ERROR: /Projects/CommitQueue/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string &quot;Unreviewed&quot; or &quot;Rubber stamp&quot; (case insensitive).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>68063</attachid>
            <date>2010-09-20 02:38:23 -0700</date>
            <delta_ts>2010-09-20 09:58:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-17023-20100920023821.patch</filename>
            <type>text/plain</type>
            <size>1857</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDY3ODQxKQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTkgQEAKKzIwMTAtMDktMjAgIEFkYW0gQmFydGggIDxhYmFy
dGhAd2Via2l0Lm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKwor
ICAgICAgICBzY3JpcHQgZWxlbWVudCBjcmVhdGVkIHdpdGggaHRtbCBlbGVtZW50IGFzIHBhcmVu
dAorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTcwMjMK
KworICAgICA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yaXB0LWJlZm9yZS1oZWFkLWV4cGVjdGVkLnR4
dAkocmV2aXNpb24gMCkKQEAgLTAsMCArMSBAQAorUEFTUwpJbmRleDogTGF5b3V0VGVzdHMvZmFz
dC9wYXJzZXIvcGFyZW50LW9mLXNjcmlwdC1iZWZvcmUtaGVhZC5odG1sCj09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0t
IExheW91dFRlc3RzL2Zhc3QvcGFyc2VyL3BhcmVudC1vZi1zY3JpcHQtYmVmb3JlLWhlYWQuaHRt
bAkocmV2aXNpb24gMCkKKysrIExheW91dFRlc3RzL2Zhc3QvcGFyc2VyL3BhcmVudC1vZi1zY3Jp
cHQtYmVmb3JlLWhlYWQuaHRtbAkocmV2aXNpb24gMCkKQEAgLTAsMCArMSwxMCBAQAorPCFkb2N0
eXBlIGh0bWw+Cis8c2NyaXB0PgoraWYgKHdpbmRvdy5sYXlvdXRUZXN0Q29udHJvbGxlcikKKyAg
ICBsYXlvdXRUZXN0Q29udHJvbGxlci5kdW1wQXNUZXh0KCk7CisKK2lmIChkb2N1bWVudC5nZXRF
bGVtZW50c0J5VGFnTmFtZSgic2NyaXB0IilbMF0ucGFyZW50Tm9kZS50YWdOYW1lLnRvVXBwZXJD
YXNlKCkgPT0gIkhFQUQiKQorICAgIGRvY3VtZW50LndyaXRlKCJQQVNTIikKK2Vsc2UKKyAgICBk
b2N1bWVudC53cml0ZSgiRkFJTCIpCis8L3NjcmlwdD4K
</data>
<flag name="commit-queue"
          id="57545"
          type_id="3"
          status="-"
          setter="commit-queue"
    />
          </attachment>
      

    </bug>

</bugzilla>