<?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>6214</bug_id>
          
          <creation_ts>2008-11-10 15:15:06 +0000</creation_ts>
          <short_desc>insertRow without arguments</short_desc>
          <delta_ts>2010-10-04 14:49:23 +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>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <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>22391</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2008-11-10 15:15:06 +0000</bug_when>
    <thetext>If you do insertRow() on a table without arguments, browsers do different things:

IE acts as if it were insertRow(-1).
Firefox throws a &quot;Not enough arguments&quot; exception.
WebKit/Opera act as if it were insertRow(0).

Currently Firefox seems closest to the spec. I find https://bugzilla.mozilla.org/show_bug.cgi?id=157578 which has 2 dups.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22523</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2008-11-24 23:24:28 +0000</bug_when>
    <thetext>Jonas Sicking &lt;http://www.w3.org/mid/63df84f0811110326y10c54af3y51c7e589852d9243@mail.gmail.com&gt;:
&gt; For what it&apos;s worth, I think this issue should be addressed by the
&gt; WebIDL spec so that we don&apos;t have to define for each and every
&gt; function what to do if not enough arguments are supplied.
&gt;
&gt; If we need different behavior for different functions (for, for
&gt; example, compat reasons) then WebIDL should be given hooks for that,
&gt; such as an [optional] keyword.

Agreed.  Operations are now defined to throw TypeError if insufficient arguments are thrown, and if optional arguments are actually wanted, [Optional] or overloading can be used to handle this.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22525</commentid>
    <comment_count>2</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2008-11-24 23:36:59 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Agreed.  Operations are now defined to throw TypeError if insufficient
&gt; arguments are thrown ...

Er, if arguments are passed.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>