From 12de605c12ba1b0058b22205afa30be6df628b58 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 30 Jan 2025 09:49:23 +0000 Subject: [PATCH] editorial: move dialog content attributes below preamble, with hrs --- source | 71 ++++++++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/source b/source index 864a982e0de..9c59e6bdf75 100644 --- a/source +++ b/source @@ -61735,6 +61735,42 @@ interface HTMLDialogElement : HTMLElement { caused focus to jump to the Agree button, which is a bad user experience.

+
+ +

A dialog element without an open attribute + specified should not be shown to the user. This requirement may be implemented indirectly through + the style layer. For example, user agents that support the suggested + default rendering implement this requirement using the CSS rules described in the Rendering section.

+ +
+ +
+

Removing the open attribute will usually hide the + dialog. However, doing so has a number of strange additional consequences: + +

+ +

For these reasons, it is generally better to never remove the open attribute manually. Instead, use the close() method to close the dialog, or the hidden attribute to hide it.

+
+ +
+ +

The tabindex attribute must not be specified on + dialog elements.

+

The open attribute is a boolean attribute. When specified, it indicates that the dialog element is active and that the user can interact with it.

@@ -61773,40 +61809,7 @@ interface HTMLDialogElement : HTMLElement { dialog was shown using its showModal() method; otherwise the None state.

-
- -

A dialog element without an open attribute - specified should not be shown to the user. This requirement may be implemented indirectly through - the style layer. For example, user agents that support the suggested - default rendering implement this requirement using the CSS rules described in the Rendering section.

- -
- -
-

Removing the open attribute will usually hide the - dialog. However, doing so has a number of strange additional consequences: - -

- -

For these reasons, it is generally better to never remove the open attribute manually. Instead, use the close() method to close the dialog, or the hidden attribute to hide it.

-
- -

The tabindex attribute must not be specified on - dialog elements.

- +
dialog.show()