mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Handle currently ignored WebIDL::ExceptionOr<T>s
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/acfb546048 Pull-request: https://github.com/SerenityOS/serenity/pull/15862
@@ -50,7 +50,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<HTMLTableRowElement>> HTMLTableSectionEleme
|
||||
|
||||
// 3. If index is −1 or equal to the number of items in the rows collection, then append table row to this element.
|
||||
if (index == -1 || index == rows_collection_size)
|
||||
append_child(table_row);
|
||||
TRY(append_child(table_row));
|
||||
// 4. Otherwise, insert table row as a child of this element, immediately before the index-th tr element in the rows collection.
|
||||
else
|
||||
table_row.insert_before(*this, rows_collection->item(index));
|
||||
|
||||
Reference in New Issue
Block a user