<?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>16722</bug_id>
          
          <creation_ts>2008-01-03 07:34:31 -0800</creation_ts>
          <short_desc>Page rendered blank due to difference in handling of HTML comment inside script element</short_desc>
          <delta_ts>2011-03-30 00:28:10 -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>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jonathanjohnsson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>chinmaya</cc>
    
    <cc>dbates</cc>
    
    <cc>jasneet</cc>
    
    <cc>jerome</cc>
    
    <cc>jgjedi</cc>
    
    <cc>mrowe</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66128</commentid>
    <comment_count>0</comment_count>
    <who name="">jonathanjohnsson</who>
    <bug_when>2008-01-03 07:34:31 -0800</bug_when>
    <thetext>Going to http://www.skype.com/allfeatures/callphones/ shows a blank page. Firefox shows the page as expected. The same happens both in released Safari 3.04 and in nightly r29120.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66129</commentid>
    <comment_count>1</comment_count>
      <attachid>18251</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-01-03 08:07:58 -0800</bug_when>
    <thetext>Created attachment 18251
Reduced test case

The erroneous behaviour is triggered by the following snippet:
&lt;script type=&quot;text/javascript&quot;&gt;
//&lt;!--[CDATA[
//]]&gt;
&lt;/script&gt;

&lt;!-- Extra comment --&gt;


Firefox sees the initial comment as ending inside the script element, while WebKit treats it as extending past &quot;Extra comment&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66130</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-01-03 08:09:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/5668296&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71013</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-02-18 00:51:31 -0800</bug_when>
    <thetext>*** Bug 12009 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71014</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-02-18 00:59:52 -0800</bug_when>
    <thetext>I updated URL since previous site was updated and the problem is not visible on that page any more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72135</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-02-27 05:17:41 -0800</bug_when>
    <thetext>The site has no longer the issue visible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120437</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-05-08 10:07:09 -0700</bug_when>
    <thetext>*** Bug 25636 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120438</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-05-08 10:07:53 -0700</bug_when>
    <thetext>According to html5lib, WebKit does what the spec says here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143935</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-09-01 10:36:23 -0700</bug_when>
    <thetext>*** Bug 28838 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143953</commentid>
    <comment_count>9</comment_count>
    <who name="Jerome Leclanche">jerome</who>
    <bug_when>2009-09-01 11:30:32 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; According to html5lib, WebKit does what the spec says here.

&quot;View source&quot; doesn&apos;t actually show the entire source. While it may be intended, the parser dying should be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143978</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-09-01 12:36:09 -0700</bug_when>
    <thetext>1. Safari &quot;View Source&quot; does show the entire source.
2. What do you mean by &quot;parser dying&quot;? A crash?

Since we do what HTML5 tells us to do, the most direct route forward is to discuss this issue with WhatWG or W3C HTML5 work groups.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>281460</commentid>
    <comment_count>11</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-09-20 02:31:18 -0700</bug_when>
    <thetext>Fixed by the HTML5 parser.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>18251</attachid>
            <date>2008-01-03 08:07:58 -0800</date>
            <delta_ts>2008-01-03 08:07:58 -0800</delta_ts>
            <desc>Reduced test case</desc>
            <filename>bug-16722.html</filename>
            <type>text/html</type>
            <size>214</size>
            <attacher name="Mark Rowe (bdash)">mrowe</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5PgoKPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPgovLzwhLS1bQ0RB
VEFbCi8vXV0+Cjwvc2NyaXB0PgoKPHA+RmlyZWZveCByZW5kZXJzIHRoaXMgYXMgdmlzaWJsZS48
L3A+Cgo8IS0tIFdlYktpdCBzZWVzIHRoZSBjb21tZW50IGluc2lkZSB0aGUgc2NyaXB0IGVsZW1l
bnQgYXMgZW5kaW5nIGhlcmUgPT0+IC0tPgoKPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>