Last Comment Bug 824116 - Make index of table.insertRow optional
: Make index of table.insertRow optional
Status: RESOLVED FIXED
: dev-doc-complete
Product: Core
Classification: Components
Component: DOM: Core & HTML (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Andrew Overholt [:overholt]
Mentors:
Depends on: 824907
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-21 14:07 PST by Ma Hsiao-Chun
Modified: 2013-04-27 10:48 PDT (History)
5 users (show)
Ms2ger: in‑testsuite?
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Ma Hsiao-Chun 2012-12-21 14:07:21 PST
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Build ID: 20121024073032

Steps to reproduce:

Check the state of table.insertRow


Actual results:

MDN says index is required:
https://developer.mozilla.org/en-US/docs/DOM/table.insertRow
And Firefox 17 does require it.


Expected results:

HTML5 standard says index is optional:
http://www.w3.org/TR/html5/tabular-data.html
And it is optional in Chrome and IE.
Comment 1 :Ms2ger (⌚ UTC+1/+2) 2012-12-21 23:50:58 PST
Spec: <http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#htmltableelement>.

It's probably easiest to wait until we move HTMLTableElement to WebIDL; Peter, do you have an idea about the timeframe for that?
Comment 2 :Ms2ger (⌚ UTC+1/+2) 2013-01-06 01:54:53 PST
Also HTMLTableSectionElement.insertRow, HTMLTableRowElement.insertCell. All default to -1.

Note You need to log in before you can comment on or make changes to this bug.