Bug 132615

Summary: [HTML] Default argument to HTMLTableRowElement.insertCell() should be -1
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: HistoryAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, 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#the-tr-element
Attachments:
Description Flags
Patch none

Description Chris Dumez 2014-05-06 10:39:18 PDT
The default argument to HTMLTableRowElement.insertCell() should be -1, not 0, according to the specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#the-tr-element 

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/263323004/
Comment 1 Chris Dumez 2014-05-06 11:08:12 PDT
Created attachment 230920 [details]
Patch
Comment 2 WebKit Commit Bot 2014-05-06 16:33:23 PDT
Comment on attachment 230920 [details]
Patch

Clearing flags on attachment: 230920

Committed r168390: <http://trac.webkit.org/changeset/168390>
Comment 3 WebKit Commit Bot 2014-05-06 16:33:28 PDT
All reviewed patches have been landed.  Closing bug.