You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug 1941278 [wpt PR 50046] - Add tests for setAttribute/setAttributeNS and non-event-handler attri…, a=testonly
Automatic update from web-platform-tests
Add tests for setAttribute/setAttributeNS and non-event-handler attributes (#50046)
This is a tentative test for [1] covering bullet 3 from [2]. There is
a separate PR to cover the bullet 2 [3]. Most of these are probably
already covered by other tests but assertions are scattered into
multiple files as a side check in the default policy callback, so they
are hard to understand and to guarantee they actually run (some mistakes
were previously found about this in the past).
Additionally, this new test cover both setAttribute and setAttributeNS
and ensure the correct callback is called exactly once with proper
attributes (e.g. to verify a call to setAttribute does not trigger the
callback with the parameters of a reflected IDL attribute).
[1] whatwg/dom#1268
[2] https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-data-for-attribute
[3] web-platform-tests/wpt#50025
--
wpt-commits: 35de05425036bf714b270c76dd00892900002963
wpt-pr: 50046
UltraBlame original commit: 4846e5ab139c44c223566809053c5948cd2d8d16
0 commit comments