<?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>9554</bug_id>
          
          <creation_ts>2006-06-23 09:25:27 -0700</creation_ts>
          <short_desc>Script written by a script but not closed by it is not parsed correctly</short_desc>
          <delta_ts>2006-06-25 22:35:27 -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>Page Loading</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>9317</dup_id>
          
          <bug_file_loc></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>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46883</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-06-23 09:25:27 -0700</bug_when>
    <thetext>In the attached test case, the first script writes a &lt;script&gt; tag, followed by one JavaScript statement, but doesn&apos;t write a &lt;/script&gt; tag. Therefore everything after the first script&apos;s closing tag up until the second &lt;/script&gt; tag should be interpreted as part of the script written by the first script.

WebKit loses the entire second script (and consequently also fails an assertion in debug builds). Firefox behaves correctly.

Note that if the first script write a complete script, i.e. writes a &lt;/script&gt; tag, then it&apos;s interpreted correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46885</commentid>
    <comment_count>1</comment_count>
      <attachid>8982</attachid>
    <who name="">mitz</who>
    <bug_when>2006-06-23 09:26:58 -0700</bug_when>
    <thetext>Created attachment 8982
Test case (will assert)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47216</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-06-25 22:35:27 -0700</bug_when>
    <thetext>This bug is the &quot;first half&quot; of bug 9317.

*** This bug has been marked as a duplicate of 9317 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>8982</attachid>
            <date>2006-06-23 09:26:58 -0700</date>
            <delta_ts>2006-06-23 09:26:58 -0700</delta_ts>
            <desc>Test case (will assert)</desc>
            <filename>9554 testcase.html</filename>
            <type>text/html</type>
            <size>262</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8L2hlYWQ+Cjxib2R5PgogICAgPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFz
Y3JpcHQiPgogICAgICAgIDwhLS0KICAgICAgICBkb2N1bWVudC53cml0ZSgnPHNjcmlwdCB0eXBl
PSJ0ZXh0L2phdmFzY3JpcHQiPicpOwogICAgICAgIGRvY3VtZW50LndyaXRlKCdhbGVydCgiaGVs
bG8iKTsnKTsKICAgICAgICAvLy0tPgogICAgPC9zY3JpcHQ+CiAgICAgICAgYWxlcnQoIndvcmxk
Iik7CiAgICA8L3NjcmlwdD4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>