<?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>148835</bug_id>
          
          <creation_ts>2015-09-04 15:35:19 -0700</creation_ts>
          <short_desc>[XHTML] Style written inside HTML comment should not be not applied</short_desc>
          <delta_ts>2015-09-07 21:37:19 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1123676</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-09-04 15:35:19 -0700</bug_when>
    <thetext>Style written inside HTML comment should not be not applied:
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;link rel=&quot;match&quot; href=&quot;html_style_in_comment-ref.html&quot;/&gt;
&lt;style type=&quot;text/css&quot;&gt;
h4 {color: green}
&lt;!--
h4 {color: red}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt; This page tests that Style written inside HTML comment is not applied&lt;/p&gt;
This test passes if the text below is &lt;b&gt;Green. NOT Red.&lt;/b&gt;
&lt;h4&gt;
This is some text.
&lt;/h4&gt;
&lt;/body&gt;
&lt;/html&gt;

This causes the following newly imported W3C ref-test to fail:
http/tests/w3c/html/semantics/document-metadata/the-style-element/html_style_in_comment.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1123677</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-09-04 15:35:57 -0700</bug_when>
    <thetext>&lt;rdar://problem/22585912&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1123690</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-09-04 16:04:00 -0700</bug_when>
    <thetext>https://wiki.whatwg.org/wiki/HTML_vs._XHTML#Element-specific_parsing has some information about this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1124196</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-09-07 21:37:19 -0700</bug_when>
    <thetext>The problem simply was the the file extension should have been .xhtml, not .html.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>