The default bug view has changed. See this FAQ.

Make index of table.insertRow optional

RESOLVED FIXED

Status

()

Core
DOM: Core & HTML
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: Ma Hsiao-Chun, Unassigned)

Tracking

({dev-doc-complete})

Trunk
dev-doc-complete
Points:
---
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
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.
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
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?
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
Hardware: x86_64 → All
Version: unspecified → Trunk

Updated

4 years ago
Depends on: 824907
Also HTMLTableSectionElement.insertRow, HTMLTableRowElement.insertCell. All default to -1.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Flags: in-testsuite?
Keywords: dev-doc-needed
Resolution: --- → FIXED
Mentioned on:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/20#DOM

Updated:
https://developer.mozilla.org/en-US/docs/DOM/table.insertRow
https://developer.mozilla.org/en-US/docs/DOM/tableRow.insertCell
Keywords: dev-doc-needed → dev-doc-complete
You need to log in before you can comment on or make changes to this bug.