Bug 245581

Summary: Align HTMLTableElement.idl and HTMLTableSelection.idl with Spec
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, karlcow, rniwa, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2022-09-23 09:44:37 PDT
Hi Team,

Thanks for doing good work to make Webkit better.

Current specs are as follow: https://html.spec.whatwg.org/multipage/tables.html#the-table-element

___

Just few examples..


Webkit is referring:

>> HTMLElement insertRow(optional long index = -1);

while other browsers:

Firefox same as Webkit while Chrome is matching specs and using "HTMLTableRowElement".

Further - Chrome does not have 'undefined' for deleteRow and removed it as part of: https://src.chromium.org/viewvc/blink?view=revision&revision=198208

____

Chromium / Blink - https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/html_table_element.idl & https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/html_table_section_element.h

Firefox / Gecko - https://searchfox.org/mozilla-central/source/dom/webidl/HTMLTableElement.webidl & https://searchfox.org/mozilla-central/source/dom/webidl/HTMLTableSectionElement.webidl 

Appreciate if we align with web-specs and make it better. Thanks!
Comment 1 Radar WebKit Bug Importer 2022-09-30 09:45:20 PDT
<rdar://problem/100626107>
Comment 2 Ryosuke Niwa 2022-10-03 23:54:16 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4971
Comment 3 EWS 2022-10-05 12:26:04 PDT
Committed 255188@main (e1aa1cec3e23): <https://commits.webkit.org/255188@main>

Reviewed commits have been landed. Closing PR #4971 and removing active labels.