stumptown-content icon indicating copy to clipboard operation
stumptown-content copied to clipboard

Support global attributes

Open wbamberg opened this issue 6 years ago • 4 comments

The HTML documentation on MDN includes pages for all the global attributes, e.g. https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey.

We should define a structure for these pages, and migrate all of them into that structure.


Acceptance criteria:

  • global attributes recipe is written and checked into stumptown-content
  • all global attributes are migrated into stumptown-content

wbamberg avatar Sep 10 '19 23:09 wbamberg

Currently, we have a few attributes migrated to certain elements that are actually global attributes per the spec. We should move these into the global attributes folder once it exists and add spec_url.

body (see https://html.spec.whatwg.org/multipage/dom.html#global-attributes:event-handler-content-attributes)

  • onblur
  • onerror
  • onfocus
  • onload
  • onredo
  • onresize
  • onundo

button

  • autofocus (see https://html.spec.whatwg.org/#the-autofocus-attribute:attr-fe-autofocus-7)

Elchi3 avatar Oct 10 '19 09:10 Elchi3

all global attributes are migrated into stumptown-content

I'm removing this from the AC but we should come back to it once we have initial support for global attributes in the next sprint.

Elchi3 avatar Oct 24 '19 15:10 Elchi3

Can you make sure there is a user story (stub) for that?

atopal avatar Oct 24 '19 15:10 atopal

Parked until a decision is made about its future.

jmswisher avatar Nov 13 '19 00:11 jmswisher