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

20 HTML attributes missing in json #25075

Open
titoBouzout opened this issue Nov 14, 2024 · 0 comments
Open

20 HTML attributes missing in json #25075

titoBouzout opened this issue Nov 14, 2024 · 0 comments
Labels
data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML

Comments

@titoBouzout
Copy link

What type of issue is this?

Other

What information was incorrect, unhelpful, or incomplete?

I have been working on this table https://potahtml.github.io/namespace-jsx-project/index.html It's a mash-up of frameworks namespace JSX, browser setters (chrome, firefox), vscode html LSP, and MDN

The data from MDN is missing some information:

  1. Missing deprecations

For example: When reading èlement.json such for style to be https://github.com/mdn/browser-compat-data/blob/main/html/elements/style.json then attribute scoped is missing in the JSON. I can somewhat confirm its deprecated because theres a note here (CTRL+F for "scoped") https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes

The list of attributes I could confirm that are deprecated but missing in $element.json are the following:

// deprecated https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
'img.HTMLImageElement.intrinsicsize': true,

// deprecated https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#bgcolor
'col.HTMLTableColElement.bgcolor': true,

// deprecated https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#bgcolor
'colgroup.HTMLTableColElement.bgcolor': true,

// deprecated https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#language
'script.HTMLScriptElement.language': true,

// deprecated https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#accept
'form.HTMLFormElement.accept': true,

// SVG

// deprecated https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement
'style.SVGStyleElement.type': true,

// MATHML

// deprecated https://developer.mozilla.org/en-US/docs/Web/MathML/Element/annotation-xml
'annotation-xml.MathMLElement.src': true,

// deprecated https://developer.mozilla.org/en-US/docs/Web/MathML/Element/annotation
'annotation.MathMLElement.src': true,

// deprecated https://developer.mozilla.org/en-US/docs/Web/MathML/Element/ms
'ms.MathMLElement.lquote': true,
'ms.MathMLElement.rquote': true,

// legacy deprecated https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle
'mstyle.MathMLElement.scriptminsize': true,
'mstyle.MathMLElement.scriptsizemultiplier': true,

// deprecated https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
'style.HTMLStyleElement.scoped': true,
'style.SVGStyleElement.scoped': true,

  1. Missing information

I couldn't find information about the following attributes, but I am pretty sure these are deprecated/obsolete.

// not found in mdn
'iframe.HTMLIFrameElement.allowtransparency': true,

// not found in mdn
'keygen.HTMLUnknownElement.autofocus': true,
'keygen.HTMLUnknownElement.challenge': true,
'keygen.HTMLUnknownElement.disabled': true,
'keygen.HTMLUnknownElement.form': true,
'keygen.HTMLUnknownElement.keyparams': true,
'keygen.HTMLUnknownElement.keytype': true,
'keygen.HTMLUnknownElement.name': true,

about the following, I am not that sure any more, but I suppose I have found these are deprecated

'iframe.HTMLIFrameElement.seamless': true,

'object.HTMLObjectElement.typemustmatch': true,

'menu.HTMLMenuElement.label': true,
'menu.HTMLMenuElement.type': true,
  1. Missing Tags

I couldnt find a $element.json file for the following tags. There are other deprecated tags such frameset.json. So I suppose it would be only consistent to add them, maybe.

'applet',
'basefont',
'bgsound',
'blink',
'listing',
'isindex',
'keygen',
'menuitem',
'multicol',
'nextid',
'noindex',
'spacer',
  1. The following have the experimental bit set, but I am not convinced these are still experimental
a.SVGAElement.ping  
script.SVGScriptElement.async 
script.SVGScriptElement.defer 

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

Did you test this? If so, how?

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

No response

MDN metadata

No response

@queengooborg queengooborg added the data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML
2 participants