<?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>17760</bug_id>
          
          <creation_ts>2012-07-12 15:56:19 +0000</creation_ts>
          <short_desc>createPattern(canvas, null) now throws rather than &apos;repeat&apos;</short_desc>
          <delta_ts>2012-08-20 23:33:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML Canvas 2D Context</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>17891</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="kkrueger">krisk</reporter>
          <assigned_to name="rcabanie">cabanier</assigned_to>
          <cc>cabanier</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69889</commentid>
    <comment_count>0</comment_count>
    <who name="kkrueger">krisk</who>
    <bug_when>2012-07-12 15:56:19 +0000</bug_when>
    <thetext>For compatibility and interoperability it would seem far safer to not throw an exception when createPattern(canvas, null) is used.  In the below list of browsers that treat this as a &apos;repeat&apos; e.g. createPattern(canvas, &apos;repeat&apos;).

The previous version of the spec had a normative statement that matched the majority of browsers.  The latest version of the spec changed this normative statement.

Previous Spec
&apos;If the empty string or null is specified, repeat must be assumed. If an unrecognized value is given, then the user agent must raise a SYNTAX_ERR exception&apos;

Current working draft has changed to 
&apos;If the empty string is specified, repeat must be assumed. If an unrecognized value is given, then the user agent must raise a SYNTAX_ERR exception.&apos;


Treats null as &apos;repeat&apos;
Firefox 13.1
Internet Explorer 9
Chrome 20

Opera 12 does indeed raise an exception when passed &apos;null&apos;

Test Case
http://www.w3c-test.org/html/tests/submission/PhilipTaylor/canvas/2d.pattern.repeat.null.html
Related Bug
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17141</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70046</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-07-17 15:32:52 +0000</bug_when>
    <thetext>Nightly also throws.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70253</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:13:14 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17891 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72217</commentid>
    <comment_count>3</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-08-15 17:13:19 +0000</bug_when>
    <thetext>Filter on [Idon&apos;tcareaboutHTMLWGbugspam].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72249</commentid>
    <comment_count>4</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2012-08-15 17:29:02 +0000</bug_when>
    <thetext>This was a result of an update to the IDL, see:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=10640

I&apos;m unsure if this was an intended change. Pinged the writer of the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72266</commentid>
    <comment_count>5</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2012-08-16 00:58:10 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; This was a result of an update to the IDL, see:
&gt; https://www.w3.org/Bugs/Public/show_bug.cgi?id=10640
&gt; 
&gt; I&apos;m unsure if this was an intended change. Pinged the writer of the patch.

Cameron McCormack says that this was an accidental change.
This should be reverted to the previous behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72449</commentid>
    <comment_count>6</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2012-08-20 21:45:52 +0000</bug_when>
    <thetext>Fixed. 
https://github.com/w3c/html/commit/0bb4926b0be517ff9cf5bff835dcf293966350d8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72458</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-20 23:33:12 +0000</bug_when>
    <thetext>(Please note that the WHATWG spec will not be taking this change, as it does not lead towards interop and is a technically worse state for the spec to be in.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>