Bug 132651

Summary: [HTML] Default argument to HTMLTableElement.insertRow() should be -1
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, billcari, commit-queue, darin, esprehn+autocc, gyuyoung.kim, kondapallykalyan, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#htmltableelement
Attachments:
Description Flags
Patch none

Description Chris Dumez 2014-05-07 06:46:31 PDT
The default argument to HTMLTableElement.insertRow() should be -1, not 0, according to the specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#htmltableelement

Firefox 29 and IE11 both match the specification. Blink is about to change its behavior as well:
http://code.google.com/p/chromium/issues/detail?id=369803
https://codereview.chromium.org/270213007
Comment 1 Chris Dumez 2014-05-07 07:28:02 PDT
Created attachment 230996 [details]
Patch
Comment 2 WebKit Commit Bot 2014-05-07 10:31:20 PDT
Comment on attachment 230996 [details]
Patch

Clearing flags on attachment: 230996

Committed r168428: <http://trac.webkit.org/changeset/168428>
Comment 3 WebKit Commit Bot 2014-05-07 10:31:25 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Alexey Proskuryakov 2014-10-27 23:53:26 PDT
*** Bug 138067 has been marked as a duplicate of this bug. ***