Skip to content

Add tests for clicking the child of a button element#14426

Merged
tkent-google merged 1 commit into
web-platform-tests:masterfrom
Zirro:add-child-of-button-click-test
Dec 10, 2018
Merged

Add tests for clicking the child of a button element#14426
tkent-google merged 1 commit into
web-platform-tests:masterfrom
Zirro:add-child-of-button-click-test

Conversation

@Zirro

@Zirro Zirro commented Dec 9, 2018

Copy link
Copy Markdown
Member

Three tests for jsdom/jsdom#2450.

The last test passes in Firefox but fails in Chrome and Safari. I think the test is correct based on the Dispatch an event algorithm, in that non-bubbling events should not cause the activation behavior of parents to run.

@tkent-google tkent-google merged commit 8c0f2bd into web-platform-tests:master Dec 10, 2018
@annevk

annevk commented Dec 10, 2018

Copy link
Copy Markdown
Member

I think this is wrong. The way "dispatch an event" does this is by setting activationTarget while building the event path. That doesn't care about bubbling, right?

Can we invert the pass condition here and file an issue against Firefox?

Never mind, I missed the "event’s bubbles attribute is true" check in the DOM Standard. My bad.

It would still be good to file implementation bugs though to make Chrome and Safari aware of this.

domenic pushed a commit to jsdom/jsdom that referenced this pull request Dec 11, 2018
This adds steps regarding activation behavior from the 'To dispatch an event...' algorithm located at https://dom.spec.whatwg.org/#concept-event-dispatch. It also renames the existing hooks to match the names used in the specification.

Fixes #2449 and fixes #2367.

This commit also includes a web platform tests roll, as the tests for this change landed in web-platform-tests/wpt#14426.
@Zirro

Zirro commented Dec 15, 2018

Copy link
Copy Markdown
Member Author

@annevk Okay, I've filed the following bugs:
https://bugs.webkit.org/show_bug.cgi?id=192741
https://bugs.chromium.org/p/chromium/issues/detail?id=915476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants