From 6f1bfa4b4c7694fca380862c6ff3e5461c84f750 Mon Sep 17 00:00:00 2001 From: Daniel Vogelheim Date: Thu, 26 Feb 2026 16:14:34 +0100 Subject: [PATCH] Do not use class=elements for non-element definitions. --- geolocation-element.bs | 61 +++++++++++++++++++++--------------------- permission-elements.bs | 55 ++++++++++++++++++++----------------- 2 files changed, 60 insertions(+), 56 deletions(-) diff --git a/geolocation-element.bs b/geolocation-element.bs index e686206..6948380 100644 --- a/geolocation-element.bs +++ b/geolocation-element.bs @@ -447,23 +447,27 @@ This section defines several mixins and supporting algorithms. ## Activation Blockers ## {#mixin-blockers} To support a meaningful user intent signal and to conditionally block element -activation, you can use the {{ActivationBlockersMixin}} +activation, you can use the {{ActivationBlockersMixin}}. It is defined as +follows: -
-
[=Content attributes=]:
-
{{ActivationBlockersMixin/isValid}} — query whether the element can currently be activated.
-
{{ActivationBlockersMixin/invalidReason}} — return a string representation of why the element currently cannot be activated.
-
{{ActivationBlockersMixin/onvalidationstatuschange}} — notifies when the validation status changes.
-
[=DOM interface=]:
-
-
-    interface mixin ActivationBlockersMixin {
-      readonly attribute boolean isValid;
-      readonly attribute ActivationBlockersMixinBlockerReason invalidReason;
-      attribute EventHandler onvalidationstatuschange;
-    };
-   
-
+
+interface mixin ActivationBlockersMixin {
+  readonly attribute boolean isValid;
+  readonly attribute ActivationBlockersMixinBlockerReason invalidReason;
+  attribute EventHandler onvalidationstatuschange;
+};
+
+ +Elements using the {{ActivationBlockersMixin}} are expected to support the +following [=content attributes=]: + +
+
{{ActivationBlockersMixin/isValid}}
+
query whether the element can currently be activated.
+
{{ActivationBlockersMixin/invalidReason}}
+
return a string representation of why the element currently cannot be activated.
+
{{ActivationBlockersMixin/onvalidationstatuschange}}
+
notifies when the validation status changes.
@@ -609,7 +613,7 @@ These blockers come with three lifetimes: Permanent, temporary, and expiring. -### Algorithms ### {#mixin-blockers-algoreithms} +### Algorithms ### {#mixin-blockers-algorithms}
To add a blocker with a @@ -788,21 +792,16 @@ ISSUE: Do I need to define dictionary equality? ## Powerful Features, aka Permissions ## {#mixin-permissions} To support elements that gate access to [=powerful features=], you can use the -{{PowerfulFeatureObserver}}. +{{PowerfulFeatureObserver}}. It is defined as follows: -
-
[=DOM interface=]:
-
-
-    interface mixin PowerfulFeatureObserver {
-      readonly attribute PermissionState initialPermissionStatus;
-      readonly attribute PermissionState permissionStatus;
-      attribute EventHandler onpromptaction;
-      attribute EventHandler onpromptdismiss;
-    };
-   
-
-
+
+interface mixin PowerfulFeatureObserver {
+  readonly attribute PermissionState initialPermissionStatus;
+  readonly attribute PermissionState permissionStatus;
+  attribute EventHandler onpromptaction;
+  attribute EventHandler onpromptdismiss;
+};
+
The following are the [=event handlers=] (and their corresponding [=event handler event types=]) that must be supported on elements that include the {{PowerfulFeatureObserver}}:
diff --git a/permission-elements.bs b/permission-elements.bs
index c61162f..9b6614b 100644
--- a/permission-elements.bs
+++ b/permission-elements.bs
@@ -120,30 +120,35 @@ The elements in this specification exhibit a number of common behaviours, which
 are captured by the {{InPagePermissionMixin}} and its associated state,
 algorithms, and rendering rules.
 
-
-
[=Content attributes=]:
-
{{InPagePermissionMixin/isValid}} — query whether the element can currently be activated.
-
{{InPagePermissionMixin/invalidReason}} — return a string representation of why the element currently cannot be activated.
-
{{InPagePermissionMixin/onpromptdismiss}} — notifies when the user has dismissed a permission prompt that resulted from an interaction with the element
-
{{InPagePermissionMixin/onpromptaction}} — notifies when a permission prompt that resulted from an interaction with the element has been answered by the user (positively or negatively).
-
{{InPagePermissionMixin/onvalidationstatuschange}} — notifies when the validation status changes.
-
[=Accessibility considerations=]:
-
TODO
-
[=DOM interface=]:
-
-
-    interface mixin InPagePermissionMixin {
-      readonly attribute boolean isValid;
-      readonly attribute InPagePermissionMixinBlockerReason invalidReason;
-      readonly attribute PermissionState initialPermissionStatus;
-      readonly attribute PermissionState permissionStatus;
-
-      attribute EventHandler onpromptaction;
-      attribute EventHandler onpromptdismiss;
-      attribute EventHandler onvalidationstatuschange;
-    };
-   
-
+The {{InPagePermissionMixin}} interface mixin is defined as follows: + +
+interface mixin InPagePermissionMixin {
+  readonly attribute boolean isValid;
+  readonly attribute InPagePermissionMixinBlockerReason invalidReason;
+  readonly attribute PermissionState initialPermissionStatus;
+  readonly attribute PermissionState permissionStatus;
+
+  attribute EventHandler onpromptaction;
+  attribute EventHandler onpromptdismiss;
+  attribute EventHandler onvalidationstatuschange;
+};
+
+ +Elements using this mixin are expected to support the following +[=Content attributes=]: + +
+
{{InPagePermissionMixin/isValid}}
+
query whether the element can currently be activated.
+
{{InPagePermissionMixin/invalidReason}}
+
return a string representation of why the element currently cannot be activated.
+
{{InPagePermissionMixin/onpromptdismiss}}
+
notifies when the user has dismissed a permission prompt that resulted from an interaction with the element
+
{{InPagePermissionMixin/onpromptaction}}
+
notifies when a permission prompt that resulted from an interaction with the element has been answered by the user (positively or negatively).
+
{{InPagePermissionMixin/onvalidationstatuschange}}
+
notifies when the validation status changes.
The {{InPagePermissionMixin/isValid}} attribute reflects whether a the @@ -800,7 +805,7 @@ Note: The <{permission}> element is the original proposed in-page permission The <{permission}> element can request arbitrary [=powerful features=]. -
+
[=Categories=]:
[=Flow content=].
[=Phrasing content=].