Skip to content

Commit

Permalink
Fix always failing assertion due to using incorrect element name
Browse files Browse the repository at this point in the history
The object element in the document has "exposed_object_with_name" as the
name, but the assertion was checking for name "exposed_object". This
meant that this assertion would never ever be successful.
  • Loading branch information
ronak69 authored and domenic committed Oct 15, 2024
1 parent 078000e commit a08267e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/dom/documents/dom-tree-accessors/nameditem-names.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
}, "An img name appears in a document's property names when the img has no id.");

test(function() {
assert_true(names.includes("exposed_object"))
assert_true(names.includes("exposed_object_with_name"))
}, "An object name appears in a document's property names if the object is exposed.");

test(function() {
Expand Down

0 comments on commit a08267e

Please sign in to comment.