You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Popup/explainer.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ We propose a new HTML element called `popup`. This new element can be used for a
51
51
52
52
* A `show()` JavaScript method, for invoking the `popup`. When visible, the `popup` will have a default set of behaviors as well as a default positioning scheme.
53
53
* Logic for an optional `autofocus` attribute which enables moving focus to the `popup` or to a descendent.
54
-
* An optional `delegatefocus` attribute, for passing focus to descendants.
54
+
* An optional `delegatesfocus` attribute, for passing focus to descendants.
55
55
* An optional `anchor` attribute, which both relates the `popup` to an activating element and can be used in a separately-proposed, CSS-based anchor positioning scheme.
56
56
* A `hide()` method for hiding the `popup`
57
57
*[Light dismiss](#light-dismiss) behaviors.
@@ -121,12 +121,12 @@ To move focus to a descendent upon invocation, place the attribute on that desce
121
121
122
122
These `autofocus` rules will be processed each time `show` is called, as opposed to initial document load.
123
123
124
-
### `delegatefocus`
124
+
### `delegatesfocus`
125
125
126
-
Some authors may need to automatically focus the popup's first focusable descendent, and may not wish to write script to determine at runtime which element that is. In such cases the `delegatefocus` attribute can be applied to the popup:
126
+
Some authors may need to automatically focus the popup's first focusable descendent, and may not wish to write script to determine at runtime which element that is. In such cases the `delegatesfocus` attribute can be applied to the popup:
127
127
128
128
```html
129
-
<popupdelegatefocus>
129
+
<popupdelegatesfocus>
130
130
<p>I am not a focusable element.</p>
131
131
<p>Nor am I.</p>
132
132
<button>I will be focused whenever the popup becomes focused.</button>
0 commit comments