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

HTML attribute reference list is incomplete #32229

Open
Akindin opened this issue Feb 11, 2024 · 4 comments
Open

HTML attribute reference list is incomplete #32229

Akindin opened this issue Feb 11, 2024 · 4 comments
Labels
Content:HTML Hypertext Markup Language docs on hold Waiting on something else before this can be moved forward.

Comments

@Akindin
Copy link
Contributor

Akindin commented Feb 11, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes

What specific section or headline is this issue about?

Attribute list

What information was incorrect, unhelpful, or incomplete?

List of attributes is incomplete

What did you expect to see?

List of all attributes (except for aria, event, MathML and SVG attributes)

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

List of all attributes found on MDN
new Set([
"download",
"href",
"hreflang",
"ping",
"referrerpolicy",
"rel",
"target",
"type",
"alt",
"coords",
"shape",
"autoplay",
"controls",
"controlslist",
"crossorigin",
"anonymous",
"use-credentials",
"disableremoteplayback",
"loop",
"muted",
"preload",
"src",
"dir",
"cite",
"alink",
"background",
"bgcolor",
"bottommargin",
"leftmargin",
"link",
"onafterprint",
"onbeforeprint",
"onbeforeunload",
"onblur",
"onerror",
"onfocus",
"onhashchange",
"onlanguagechange",
"onload",
"onmessage",
"onoffline",
"ononline",
"onpopstate",
"onredo",
"onresize",
"onstorage",
"onundo",
"onunload",
"rightmargin",
"text",
"topmargin",
"vlink",
"clear",
"autofocus",
"disabled",
"form",
"formaction",
"formenctype",
"formmethod",
"formnovalidate",
"formtarget",
"name",
"popovertarget",
"popovertargetaction",
""hide"",
""show"",
""toggle"",
"value",
"height",
"moz-opaque",
"width",
"align",
"span",
"datetime",
"open",
"compact",
"color",
"face",
"size",
"accept",
"accept-charset",
"autocapitalize",
"autocomplete",
"noresize",
"scrolling",
"marginheight",
"marginwidth",
"frameborder",
"cols",
"rows",
"profile",
"noshade",
"manifest",
"version",
"xmlns",
"allow",
"allowfullscreen",
"allowpaymentrequest",
"credentialless",
"csp",
"loading",
"eager",
"lazy",
"no-referrer",
"no-referrer-when-downgrade",
"origin",
"origin-when-cross-origin",
"same-origin",
"strict-origin",
"strict-origin-when-cross-origin",
"unsafe-url",
"sandbox",
"allow-downloads",
"allow-downloads-without-user-activation",
"allow-forms",
"allow-modals",
"allow-orientation-lock",
"allow-pointer-lock",
"allow-popups",
"allow-popups-to-escape-sandbox",
"allow-presentation",
"allow-same-origin",
"allow-scripts",
"allow-storage-access-by-user-activation",
"allow-top-navigation",
"allow-top-navigation-by-user-activation",
"allow-top-navigation-to-custom-protocols",
"srcdoc",
"decoding",
"sync",
"async",
"auto",
"elementtiming",
"fetchpriority",
"high",
"low",
"ismap",
"sizes",
"srcset",
"usemap",
"for",
"as",
"blocking",
"imagesizes",
"imagesrcset",
"integrity",
"media",
"title",
"behavior",
"direction",
"hspace",
"scrollamount",
"scrolldelay",
"truespeed",
"vspace",
"checked",
"command",
"default",
"icon",
"label",
"radiogroup",
"charset",
"content",
"http-equiv",
"min",
"max",
"optimum",
"archive",
"border",
"classid",
"codebase",
"codetype",
"data",
"declare",
"standby",
"reversed",
"start",
"selected",
"valuetype",
"wrap",
"defer",
"nomodule",
"nonce",
"importmap",
"module",
"speculationrules",
"multiple",
"required",
"colspan",
"headers",
"rowspan",
"shadowrootmode",
"closed",
"autocorrect",
"on",
"off",
"dirname",
"maxlength",
"minlength",
"placeholder",
"readonly",
"spellcheck",
"abbr",
"scope",
"kind",
"srclang",
"disablepictureinpicture",
"playsinline",
"poster",
"capture",
"pattern",
"step",
"accesskey",
"class",
"contenteditable",
"contextmenu",
"data-*",
"draggable",
"enterkeyhint",
"exportparts",
"hidden",
"id",
"inert",
"inputmode",
"is",
"itemid",
"itemprop",
"itemref",
"itemscope",
"itemtype",
"lang",
"part",
"popover",
"role",
"slot",
"style",
"tabindex",
"translate",
"virtualkeyboardpolicy",
"xml:base",
"xml:lang",
"webkitdirectory"
])

MDN metadata

Page report details
@Akindin Akindin added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Feb 11, 2024
@github-actions github-actions bot added the Content:HTML Hypertext Markup Language docs label Feb 11, 2024
@TjasaZil
Copy link
Contributor

Would love to go trough the list and add missing attributes if this is needed

@Akindin
Copy link
Contributor Author

Akindin commented Apr 22, 2024

@TjasaZil it would be awesome because now it's kinda hard to find a specific attribute without going through multiple element pages.

@Josh-Cena Josh-Cena changed the title Lack of attributes, not all of them presented HTML attribute reference list is incomplete Jun 5, 2024
@estelle
Copy link
Member

estelle commented Jun 12, 2024

The table of attributes should be removed as incomplete both in terms of there being missing attributes (over 10 global attributes are missing from the list) and in terms of there being red non-links due to missing documentation.

Suggested fixes:

  1. remove the table from this page
  2. Put in a definition list limited to the attributes that have pages both in the attributes sub-tree (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/<attribute>) and the global attributes sub-tree (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/<attribute>). List these in alphabetical order, as currently done, but with the list of obsolete and deprecated attributes coming after a main list.
  3. Add text clarifying that this is not an exhaustive list of all attributes
  4. Move most of the IDL section to the IDL glossary page, shrinking the section in this page to the basics, and putting it last in terms of attribute sections.
  5. Link the term "boolean" to MDN glossary term instead of the whatwg spec
  6. Add a section defining "enumerated", linking to the glossary for that term
  7. Add a link to the global attributes page to see also section

@Josh-Cena Josh-Cena added on hold Waiting on something else before this can be moved forward. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jun 12, 2024
@estelle
Copy link
Member

estelle commented Jun 17, 2024

Note: A discussion about HTML attributes was started, based on this issue, at https://github.com/orgs/mdn/discussions/688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTML Hypertext Markup Language docs on hold Waiting on something else before this can be moved forward.
Projects
None yet
Development

No branches or pull requests

4 participants