<?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>22218</bug_id>
          
          <creation_ts>2013-05-30 17:50:06 +0000</creation_ts>
          <short_desc>CanvasFillRule arguments should be [TreatUndefinedAs=Missing]</short_desc>
          <delta_ts>2013-06-24 07:57:17 +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>WONTFIX</resolution>
          
          <see_also>https://bugzilla.mozilla.org/show_bug.cgi?id=861938</see_also>
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#2dcontext</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>bzbarsky</cc>
    
    <cc>cabanier</cc>
    
    <cc>cam</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88457</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-05-30 17:50:06 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html
Multipage: http://www.whatwg.org/C#2dcontext
Complete: http://www.whatwg.org/c#2dcontext
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
CanvasFillRule arguments should be [TreatUndefinedAs=Missing]

Posted from: 98.110.194.206 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20130521 Firefox/24.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88458</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-05-30 17:50:36 +0000</bug_when>
    <thetext>See https://bugzilla.mozilla.org/show_bug.cgi?id=861938</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88460</commentid>
    <comment_count>2</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2013-05-30 18:13:51 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; See https://bugzilla.mozilla.org/show_bug.cgi?id=861938

If WebIDL could specify this as the default behavior (which seems to be what people want), we won&apos;t have to change the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89186</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-12 17:58:14 +0000</bug_when>
    <thetext>heycam, is this something that you&apos;re planning on doing to WebIDL?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89220</commentid>
    <comment_count>4</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2013-06-12 23:59:03 +0000</bug_when>
    <thetext>Yeah, I&apos;m going to change how undefined works soon (next week probably), to match how ES6 handles it, which is that undefined for an optional argument is like not specifying it at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89229</commentid>
    <comment_count>5</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2013-06-13 04:41:04 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Yeah, I&apos;m going to change how undefined works soon (next week probably), to
&gt; match how ES6 handles it, which is that undefined for an optional argument
&gt; is like not specifying it at all.

What if you pass a different argument type  (i.e. an object). Will your change automatically promote it to undefined and missing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89230</commentid>
    <comment_count>6</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-06-13 04:53:11 +0000</bug_when>
    <thetext>No, and that doesn&apos;t happen with [TreatUndefinedAs=Missing].  If you do that with these APIs, they will throw (unless your object&apos;s toString produces an element of this enum).  Which seems fine to me, frankly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89233</commentid>
    <comment_count>7</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2013-06-13 05:48:17 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; No, and that doesn&apos;t happen with [TreatUndefinedAs=Missing].  If you do that
&gt; with these APIs, they will throw (unless your object&apos;s toString produces an
&gt; element of this enum).  Which seems fine to me, frankly.

ah, I was under the impression that we were trying to allow any argument. Rereading the linked bug, this is just about [undefined].

With Cameron&apos;s change, the spec doesn&apos;t have to be updated so this bug can be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89668</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-20 22:55:30 +0000</bug_when>
    <thetext>Closing per comment 7; if you disagree please don&apos;t hesitate to reopen it.

heycam, if there are implications of your change on what I say anywhere in the HTML spec that you know of, please file a bug on me to fix it (or drop me a mail, whichever), thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89743</commentid>
    <comment_count>9</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2013-06-24 07:57:17 +0000</bug_when>
    <thetext>The Web IDL changes have been made now, so undefined will be treated as a missing optional argument (and fill in the default value) automatically.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>