-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Issue #5552 - Update whenDefined
steps to resolve with the class
#5833
Conversation
I’m pretty sure that “implementers” refers to browser engines and other implementations of the HTML specification. |
This seems equivalent to #5831. Equivalent to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to update the define
steps above:
https://github.com/whatwg/html/blob/92601766919431dad494060bb70adc156b15c7e0/source#L66336-L66348
5efeb24
to
792fc72
Compare
Except it has all bugs attached ... maybe we can flag that one as duplicated, or move all filed bugs in there? Filed bugs also point at this URL ... didn't notice there was already a PR |
792fc72
to
f9fa850
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also noticed that whenDefined()
doesn't seem to return promise at the moment, but perhaps that's best tackled separately.
7204a6e
to
bd36869
Compare
WebKit patch is ready to go: https://bugs.webkit.org/show_bug.cgi?id=215562 |
@mfreed7 @smaug---- @EdgarChen @domenic thoughts? Seems reasonable to me. @WebReflection you'll have to sign https://participate.whatwg.org/agreement. |
Done 👍 |
This should probably also have “Fixes #5552” in the PR description. See GitHub Docs for details. |
This seems reasonable to me. |
bd36869
to
dfc1388
Compare
Other than that I think we're good to go here with agreement from two implementers (as well as a patch), tests, and a reviewed PR. |
@annevk I’m not contributing on behalf of my employer here, I’m even on vacation right now, and this is my own account, not the one used for my work. Do I need to ask them? Looks like friction for no reason, and this contribution has nothing to do with ads. Please let me know, thanks. |
I checked and I think all is in order. I did notice that IDL wasn't updated and I pushed a commit for that. At this point I should let @domenic do the final review though. |
This PR has been implemented in WebKit as of https://trac.webkit.org/r266142. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should update the domintro too.
Marking as "Request changes" as @WebReflection definitely works in the field of web technologies, and as such needs their employer to sign the agreement.
I have a patch for Gecko in https://phabricator.services.mozilla.com/D88281 too fwiw, but I want to wait till WPT and the spec are updated. |
Just FYI, I've contacted my company about this but many, me included, are on vacation these days, so this might take a while.
@domenic anything I should do? Not sure I even know what that is, thanks. |
@WebReflection basically <dt><var>window</var> . <code data-x="dom-window-customElements">customElements</code> . <code
subdfn data-x="dom-CustomElementRegistry-whenDefined">whenDefined</code>(<var>name</var>)</dt>
<dd>Returns a promise that will be fulfilled when a <span>custom element</span> becomes defined
with the given name. (If such a <span>custom element</span> is already defined, the returned
promise will be immediately fulfilled.) Returns a promise rejected with a
<span>"<code>SyntaxError</code>"</span> <code>DOMException</code> if not given a <span>valid
custom element name</span>.</dd> needs updating to account for the fact that the promise has a specific fulfillment value. "domintro" are the green boxes you sometimes see in WHATWG standards that have a more developer-facing informal description of an API. |
2a82199
to
eed9aad
Compare
Done 👍 |
I've just submitted the agreement on behalf of the company I work for, I hope everything is fine now. |
@WebReflection you'll need to make your membership of eyeo-gmbh public. |
@annevk you mean the org, right? I'm on it 👍 |
@WebReflection I realize, but https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/publicizing-or-hiding-organization-membership is important as our bot can't see that otherwise. |
@annevk I should be in the list now https://github.com/eyeo-gmbh ... anything else I should do/ask for? Thanks! Edit I should have eyeo in the list of my orgs now |
When I go to your profile I don't see it. |
Also, it seems you undid my changes to this branch so the IDL is no longer correct. |
can you please try again? it had private visibility, but I've thought bots would see it regardless. Anyway, it's public now.
which change? happy to put it back. |
eed9aad
to
9e753d2
Compare
@annevk I've rebased from upstream too, but I'm afraid I'm not sure what/where is the change you are mentioning. Any hint appreciated, thanks. |
@WebReflection |
9e753d2
to
0661290
Compare
done |
…r now See whatwg/html#5552 and whatwg/html#5833 for context.
Thanks @WebReflection! |
no, thank you all for this, it looks tiny, but I believe it improves a lot usability 🎉 |
Fixes #5552
whenDefined
web-platform-tests/wpt#25033/custom-elements.html ( diff )