Skip to content

Commit 0df6cdf

Browse files
keithamusmozilla@keithcirkel.co.uk
authored andcommitted
Bug 1983512 - Make command events not composed r=smaug,dom-core
See whatwg/html#11255 for more. Differential Revision: https://phabricator.services.mozilla.com/D261393
1 parent 35e8c02 commit 0df6cdf

File tree

2 files changed

+1
-59
lines changed

2 files changed

+1
-59
lines changed

dom/html/HTMLButtonElement.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,11 @@ void HTMLButtonElement::ActivationBehavior(EventChainPostVisitor& aVisitor) {
381381
// 5.5. Let continue be the result of firing an event named command at
382382
// target, using CommandEvent, with its command attribute initialized to
383383
// command, its source attribute initialized to element, and its cancelable
384-
// and composed attributes initialized to true.
384+
// attribute initialized to true.
385385
CommandEventInit init;
386386
GetCommand(init.mCommand);
387387
init.mSource = this;
388388
init.mCancelable = true;
389-
init.mComposed = true;
390389
RefPtr<Event> event = CommandEvent::Constructor(this, u"command"_ns, init);
391390
event->SetTrusted(true);
392391
event->SetTarget(target);

testing/web-platform/meta/html/semantics/the-button-element/command-and-commandfor/button-event-dispatch.html.ini

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)