<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24607</bug_id>
          
          <creation_ts>2014-02-10 20:11:00 +0000</creation_ts>
          <short_desc>&lt;style type&gt; should be ascii case-insensitive compare to &quot;text/css&quot;. Similar to &lt;script type&gt;. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2803</short_desc>
          <delta_ts>2014-02-20 12:11:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-style-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100193</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-02-10 20:11:00 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html
Multipage: http://www.whatwg.org/C#the-style-element
Complete: http://www.whatwg.org/c#the-style-element
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
&lt;style type&gt; should be ascii case-insensitive compare to &quot;text/css&quot;. Similar
to &lt;script type&gt;.
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2803

Posted from: 90.230.218.37 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.90 Safari/537.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100213</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-10 21:41:08 +0000</bug_when>
    <thetext>I don&apos;t mind changing how &lt;style type=&quot;&quot;&gt; works, but before I do so, we should make sure we agree on what the spec says already... as far as I can tell, &lt;script type=&quot;&quot;&gt; doesn&apos;t work as you describe, at least not per spec. It&apos;s not just a string comparison. In particular, the spec says to do space trimming for &lt;script type=&quot;&quot;&gt;, then to compare the relevant component (i.e. not the parameters) to the strings given in the &quot;scripting languages&quot; section.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100256</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-02-11 09:56:05 +0000</bug_when>
    <thetext>Ah, yeah I forgot &lt;script type&gt; trimmed whitespace. I meant that &lt;style type&gt; should be like &lt;script type&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100320</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-11 19:52:06 +0000</bug_when>
    <thetext>So, as far as I can tell, the spec matches at least Firefox, and is already consistent between &lt;style type&gt; and &lt;script type&gt;. Can you elaborate on what exactly you want and why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100512</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-02-13 12:12:43 +0000</bug_when>
    <thetext>I want to avoid MIME type parsing of &lt;style type&gt; because that seems like unnecessary complexity that &lt;script type&gt; doesn&apos;t have.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100634</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-14 21:52:43 +0000</bug_when>
    <thetext>But &lt;script type&gt; does have it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100952</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-02-20 12:11:36 +0000</bug_when>
    <thetext>Hmm. So long as the UA doesn&apos;t support a language *with* parameters, there&apos;s no difference. But if it does you need the MIME type parser. OK.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>