-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
MediaEmbed: Rename <oembed> to <o-embed> for custom elements compatibility #9373
Comments
I'll quote myself from the PR (#9375):
|
As for simplifying the configuration, another PR has been made at #9418
Do you have an alternative to Custom elements require a hyphen: https://html.spec.whatwg.org/#valid-custom-element-name I am flexible as to the element name being something else. Please let me know if you have any suggestions! I picked |
I propose changing the name of
<oembed>
to write<o-embed>
for forward compatibility with custom elements per #2737📝 Provide a description of the improvement
Media embed saves
<oembed>
, but in the WhatWG specification requires a dash/hyphen (1, 2):This will permit systems like LitElement, Stencil and others to fill support for embeds.
📃 Other details
MediaEmbed
Ideas:
That change should be backward compatible so it doesn't break existing HTML.
As a first step, prepare
MediaEmbed
to handle different tags:preferredElementName
can be set,elementNames
for tags that should be detected as media embedsLater:
migrateToPreferredTagOnChange
can be turned on to implicitly update existing tags to the preferred tagsIf you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: