<?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>15975</bug_id>
          
          <creation_ts>2007-11-13 17:34:11 -0800</creation_ts>
          <short_desc>REGRESSION: rcov 0.8 CSS highlighting is broken in Safari 3</short_desc>
          <delta_ts>2011-02-04 18:23:05 -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>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://taw.chaosforge.org/magic_xml/coverage/magic_xml_rb.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41115</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Luis de la Rosa">luis</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>emacemac7</cc>
    
    <cc>mitz</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61136</commentid>
    <comment_count>0</comment_count>
    <who name="Luis de la Rosa">luis</who>
    <bug_when>2007-11-13 17:34:11 -0800</bug_when>
    <thetext>I reported this originally on http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/

rcov is a code coverage tool for ruby.  Its latest version is 0.8.0.2.  The output will highlight covered lines of code in green and uncovered in red.  This worked perfectly in Tiger with Safari 2.  However, in Leopard with Safari 3, it no longer highlights.  I also tested with OmniWeb 5.6 and it does not highlight either.

However, Firefox 2 on Leopard does work properly as does Camino on Leopard.

One good URL that shows the information is http://taw.chaosforge.org/magic_xml/coverage/magic_xml_rb.html

Rcov 0.4 however works properly in Safari 3 on Leopard and here&apos;s an example URL:
http://bioruby-doc.org/coverage/-tmp-bioruby-lib-bio-db-gff_rb.html

If you look at the difference, it looks like there are some extra XHTML tags that are of the form &quot;&lt;a name=&quot;line1&quot; /&gt;&quot; which throw off Safari 3.

Also I tested a WebKit nightly, but I don&apos;t remember the version - I will test again soon but it was broken as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61151</commentid>
    <comment_count>1</comment_count>
      <attachid>17255</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-13 19:24:19 -0800</bug_when>
    <thetext>Created attachment 17255
Reduced test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61152</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-13 19:31:17 -0800</bug_when>
    <thetext>http://software.hixie.ch/utilities/js/live-dom-viewer/ does a good job of showing the difference here between Firefox and Safari.  For the following snippet:

&lt;span&gt;&lt;a/&gt;Span One&lt;/span&gt;
&lt;span&gt;&lt;a/&gt;Span Two&lt;/span&gt;

In Safari, the DOM is equivalent to the DOM given by:
&lt;span&gt;&lt;a&gt;Span One&lt;/a&gt;&lt;/span&gt;
&lt;a&gt; &lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;a&gt;Span Two &lt;/a&gt;

While in Firefox, the DOM is equivalent to that given by:
&lt;span&gt;&lt;a&gt;Span One&lt;/a&gt;&lt;/span&gt;
&lt;span&gt;&lt;a&gt;Span Two&lt;/a&gt;&lt;/span&gt;

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61153</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-13 19:31:54 -0800</bug_when>
    <thetext>&lt;rdar://problem/5599013&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61202</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-11-14 07:55:47 -0800</bug_when>
    <thetext>What does libhtml5 say?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61227</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-11-14 12:34:11 -0800</bug_when>
    <thetext>Looks like it agrees with WebKit: &lt;http://james.html5.org/parsetree.html&gt;. MSIE builds a very different tree however.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296936</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-10-20 12:31:05 -0700</bug_when>
    <thetext>This problem still occurs in Safari 5 and nightlies.

Adam, do we want to track this as an HTML5 parser compatibility issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296951</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-10-20 13:04:56 -0700</bug_when>
    <thetext>&gt; Adam, do we want to track this as an HTML5 parser compatibility issue?

Sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>345983</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-02-04 18:23:05 -0800</bug_when>
    <thetext>I&apos;m sorry, but I don&apos;t think we&apos;re going to fix this site.  The site is now broken in Firefox 4 as well.  It looks like a cool tool though.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>17255</attachid>
            <date>2007-11-13 19:24:19 -0800</date>
            <delta_ts>2007-11-13 19:24:19 -0800</delta_ts>
            <desc>Reduced test case</desc>
            <filename>bug-15975-test.html</filename>
            <type>text/html</type>
            <size>223</size>
            <attacher name="Mark Rowe (bdash)">mrowe</attacher>
            
              <data encoding="base64">PHN0eWxlIHR5cGU9InRleHQvY3NzIj4KICAgIHNwYW4gewogICAgICAgIGNvbG9yOiB3aGl0ZTsK
ICAgIH0KICAgIGEgewogICAgICAgIGJhY2tncm91bmQtY29sb3I6ICM5OTk7CiAgICAgICAgcGFk
ZGluZzogNXB4OwogICAgICAgIGZvbnQ6IDE1cHggc2Fucy1zZXJpZjsKICAgIH0KPC9zdHlsZT4K
PHNwYW4+PGEvPlNwYW4gT25lPC9zcGFuPgo8c3Bhbj48YS8+U3BhbiBUd288L3NwYW4+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>