Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass sourceText to OrdinaryFunctionCreate for event handlers #5514

Merged
merged 5 commits into from
May 8, 2020

Conversation

domenic
Copy link
Member

@domenic domenic commented May 5, 2020

Closes #5500.

(See WHATWG Working Mode: Changes for more details.)


/webappapis.html ( diff )

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, but we should remove the newline after the <dl class="switch">. Although I guess I'd be open to doing that as a follow-up myself for the whole file (seems like something I might have missed the last time around).

@annevk annevk added do not merge yet Pull request must not be merged per rationale in comment needs tests Moving the issue forward requires someone to write tests labels May 6, 2020
domenic added a commit to web-platform-tests/wpt that referenced this pull request May 7, 2020
@domenic domenic added topic: events and removed do not merge yet Pull request must not be merged per rationale in comment needs tests Moving the issue forward requires someone to write tests labels May 7, 2020
@domenic domenic requested a review from TimothyGu May 7, 2020 21:45
@domenic
Copy link
Member Author

domenic commented May 7, 2020

This now has tests, which pass in Chrome Canary (not stable) and Firefox. We'll see what the bots say for Safari, and I'll file a bug if necessary.

Edit: according to the test bots, Safari does not implement this; filed https://bugs.webkit.org/show_bug.cgi?id=211597.

Adding @TimothyGu for an extra review if he has time, to double-check my event target logic.

domenic added a commit to web-platform-tests/wpt that referenced this pull request May 7, 2020

<dd>
<dl class="switch">
<dt>If <var>eventHandler</var> is an <code data-x="handler-onerror">onerror</code> <span
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go a bit further and say 'if name is "onerror" '. The Window check looks good though.

@domenic domenic merged commit bfe9479 into master May 8, 2020
@domenic domenic deleted the ordinaryfunctioncreate branch May 8, 2020 15:14
domenic added a commit to web-platform-tests/wpt that referenced this pull request May 8, 2020
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 15, 2020
…=testonly

Automatic update from web-platform-tests
Test the sourceText of event handlers

Follows whatwg/html#5514.

--

wpt-commits: af188628fbb56cbce2ba5c9ca418b5f465a64063
wpt-pr: 23467
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request May 15, 2020
…=testonly

Automatic update from web-platform-tests
Test the sourceText of event handlers

Follows whatwg/html#5514.

--

wpt-commits: af188628fbb56cbce2ba5c9ca418b5f465a64063
wpt-pr: 23467
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 20, 2020
…=testonly

Automatic update from web-platform-tests
Test the sourceText of event handlers

Follows whatwg/html#5514.

--

wpt-commits: af188628fbb56cbce2ba5c9ca418b5f465a64063
wpt-pr: 23467
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request May 20, 2020
…=testonly

Automatic update from web-platform-tests
Test the sourceText of event handlers

Follows whatwg/html#5514.

--

wpt-commits: af188628fbb56cbce2ba5c9ca418b5f465a64063
wpt-pr: 23467
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

ECMAScript's OrdinaryFunctionCreate has new parameter
3 participants