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

Move HTMLOrForeignElement out of HTMLElement? #6129

Closed
bershanskiy opened this issue May 10, 2020 · 2 comments
Closed

Move HTMLOrForeignElement out of HTMLElement? #6129

bershanskiy opened this issue May 10, 2020 · 2 comments
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@bershanskiy
Copy link
Contributor

HTMLOrForeignElement is a mixin that describes several features common to the HTMLElement, SVGElement and MathMLElement interfaces. It even has it's own page (HTMLOrForeignElement)and its members are documented on pages that are children pages to that page. Yet, for some reason __compat data about members of HTMLOrForeignElement lives under corresponding elements.

We should consider either of the two things:

  1. Create a single separate file api/HTMLOrForeignElement.json
    HTMLOrForeignElement.dataset says "Please change the compat macro's paramter to api.HTMLOrForeignElement.dataset after BCD is updated."
  2. Create separate BCD entries for HTMLElement, SVGElement and MathMLElement but make a single documentation page
    E.g., for HTMLOrForeignElement.nonce each of HTMLElement.nonce, SVGElement.nonce, and MathMLElement.nonce will have a separate __compat like they do now, but they will link to a single article HTMLOrForeignElement.nonce.
@queengooborg queengooborg added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label May 10, 2020
@Elchi3
Copy link
Member

Elchi3 commented May 14, 2020

This is tricky and we haven't addressed this issue. See #472 and #3463 for some prior discussions.

@bershanskiy
Copy link
Contributor Author

Thanks. Closing this as a duplicate of the linked bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

3 participants