Re: [svgwg] 'autofocus' attribute support (#726)

The SVG Working Group just discussed `'autofocus' attribute support`, and agreed to the following:

* `RESOLUTION: Accept the change to the shared HTML/SVG mixin to add autofocus and agree to make a matching global attribute`

<details><summary>The full IRC log of that discussion</summary>
&lt;krit> topic: 'autofocus' attribute support<br>
&lt;krit> GitHub: https://github.com/w3c/svgwg/issues/726<br>
&lt;krit> AmeliaBR: this came up from an issue on Whatwg<br>
&lt;krit> AmeliaBR: An HTML is currently only defined on elements that are focused by default like text area<br>
&lt;krit> AmeliaBR: but the plan is to make autofocus valid anywhere that can be made focusable<br>
&lt;krit> AmeliaBR: the proposal was to define it on the HTMLSVGElement mixin<br>
&lt;krit> AmeliaBR: so that SVG elements also take tabindex and also use autofocus<br>
&lt;krit> AmeliaBR: If this change goes in to the mixin the change is limited to IDL<br>
&lt;krit> AmeliaBR: we should comment if we have concerns with this change to the shared mixin<br>
&lt;krit> krit: what would happen to SVG elements like refs, mask, clipPath that are not focusable at the moment?<br>
&lt;krit> AmeliaBR: they can have tabindex but would never receive focus since they are non-renderable elements<br>
&lt;krit> AmeliaBR: I think the behavior of autofocus would fall out of that<br>
&lt;krit> AmeliaBR: it triggers an algorithm<br>
&lt;krit> AmeliaBR: we could add a comment to the HTML issue to make sure that this is cleat<br>
&lt;krit> krit: we do have a term for non-renderable term<br>
&lt;krit> krit: So maybe HTML could just reference this term for SVG elements<br>
&lt;krit> AmeliaBR: we have a definition in the interaction section about focus. It defines which elements are focusable. This should match the term of a focusable area within an element of HTML.<br>
&lt;AmeliaBR> https://svgwg.org/svg2-draft/interact.html#Focus<br>
&lt;krit> AmeliaBR: It does reference the definition what a renderable element is.<br>
&lt;krit> krit: seems fine if HTML is referencing focusable areas and if SVG is defining what this means for SVG.<br>
&lt;krit> RESOLUTION: Accept the change to the shared HTML/SVG mixin to add autofocus and agree to make a matching global attribute<br>
&lt;krit> AmeliaBR: We should try to coordinate things. Maybe with a draft PR that can be merged quickly after the HTML changes.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/726#issuecomment-525021879 using your GitHub account

Received on Monday, 26 August 2019 20:36:39 UTC