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: permission-elements.bs
+65-48Lines changed: 65 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -108,16 +108,16 @@ where it's oftentimes unclear to users what the consequences of these requests
108
108
might be.
109
109
110
110
This spec introduces a new mechanism that requests and initiates access to
111
-
[=powerful features=] through an in-page element, with built-in protections
111
+
[=powerful features=] through in-page elements, with built-in protections
112
112
against abuse. This wants to tie permission requests to the actual context
113
113
in which they will be used, thus reducing "permission spam" and at the same
114
114
time providing implementations with a better signal of user intent.
115
115
116
116
117
-
# {{InPagePermissionMixin}}: Common Behaviours Of The HTML Permission Elements # {#permission-mixin}
117
+
# Common Behaviours Of The HTML Permission Elements: {{InPagePermissionMixin}} # {#permission-mixin}
118
118
119
119
The elements in this specification exhibit a number of common behaviours, which
120
-
are captured by the {{InPagePermissionMixin}} and the associated state,
120
+
are captured by the {{InPagePermissionMixin}} and its associated state,
121
121
algorithms, and rendering rules.
122
122
123
123
<dl class="element">
@@ -161,13 +161,13 @@ for the global <{htmlsvg-global/tabindex}> content attribute on the
161
161
element is 0.
162
162
163
163
The following are the [=event handlers=] (and their corresponding [=event handler event types=]) that must be supported on elements that include the {{InPagePermissionMixin}}:
164
-
164
+
<dfn lt="permission elements attributes">
165
165
<pre class=simpledef>
166
166
onpromptaction: Event
167
167
onpromptdismiss: Event
168
168
onvalidationstatuschange: Event
169
169
</pre>
170
-
170
+
</dfn>
171
171
172
172
## {{InPagePermissionMixin|Mixin}} internal state ## {#mixin-internal-state}
173
173
@@ -798,7 +798,7 @@ Note: The <{permission}> element is the original proposed in-page permission
798
798
expect that this element will be removed in favour of the more specific
799
799
elements detailled in the following chapters.
800
800
801
-
The HTML <{permission}> element can request arbitrary [=powerful features=].
801
+
The <{permission}> element can request arbitrary [=powerful features=].
802
802
803
803
<dl class="element">
804
804
<dt>[=Categories=]:</dt>
@@ -809,24 +809,16 @@ The HTML <{permission}> element can request arbitrary [=powerful features=].
809
809
<dt>[=Contexts in which this element can be used=]:</dt>
810
810
<dd>Where [=phrasing content=] is expected.</dd>
811
811
<dt>[=Content model=]:</dt>
812
-
<dd>[=flow content=].</dd>
812
+
<dd>[=Flow content=].</dd>
813
813
<dt>[=Content attributes=]:</dt>
814
814
<dd>[=Global attributes=]</dd>
815
-
<dd>{{HTMLPermissionElement/type}} — Type of permission this element applies to.</dd>
815
+
<dd>[=Permission elements attributes=]</dd>
816
+
<dd><{permission/type}> — Type of permission this element applies to.</dd>
817
+
<dd><{permission/lang}> — Like the global <a element-attr for=html-global>lang</a> attribute.
816
818
<dt>[=Accessibility considerations=]:</dt>
817
819
<dd></dd>
818
820
<dt>[=DOM interface=]:</dt>
819
-
<dd>
820
-
<pre class=idl>
821
-
[Exposed=Window]
822
-
interface HTMLPermissionElement : HTMLElement {
823
-
[HTMLConstructor] constructor();
824
-
[CEReactions, Reflect] attribute DOMString type;
825
-
static boolean isTypeSupported(DOMString type);
826
-
};
827
-
HTMLPermissionElement includes InPagePermissionMixin;
0 commit comments