From 6331e77a0ebe34e83f8717dff14f0bdc0fefe99e Mon Sep 17 00:00:00 2001 From: Rakina Zata Amni Date: Fri, 5 Jul 2019 17:22:36 +0900 Subject: [PATCH 1/6] Define what tabIndex returns when the tabindex attribute is not set --- source | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source b/source index 9d749bd678d..7de99adcbae 100644 --- a/source +++ b/source @@ -73709,8 +73709,10 @@ END:VCARD

The tabIndex IDL attribute must reflect the value of the tabindex content - attribute. Its default value is 0 for elements that are focusable and −1 for elements that - are not focusable.

+ attribute. If the tabindex content attribute is not set, then + it must return 0 if the element is either an input, button, + a, textarea, select, iframe, or + area element, and must return -1 otherwise.

From 4221ce8d785f6f11b03025c9f53e3433e4132208 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 8 Jul 2019 12:47:08 -0400 Subject: [PATCH 2/6] Keep saying "default value" --- source | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source b/source index 7de99adcbae..5dfaf3b2993 100644 --- a/source +++ b/source @@ -73709,10 +73709,9 @@ END:VCARD

The tabIndex IDL attribute must reflect the value of the tabindex content - attribute. If the tabindex content attribute is not set, then - it must return 0 if the element is either an input, button, + attribute. Its default value is 0 if the element is an input, button, a, textarea, select, iframe, or - area element, and must return -1 otherwise.

+ area element, and is -1 otherwise.

From 918e9376fd68e43f084ac7527011c5c85301ef8e Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 9 Jul 2019 13:32:18 -0400 Subject: [PATCH 3/6] Entity reference --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 5dfaf3b2993..0ea73c65b5b 100644 --- a/source +++ b/source @@ -73711,7 +73711,7 @@ END:VCARD reflect the value of the tabindex content attribute. Its default value is 0 if the element is an input, button, a, textarea, select, iframe, or - area element, and is -1 otherwise.

+ area element, and is −1 otherwise.

From e6c5a5952aa86d5722de0de90238e88204da7ed9 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 9 Jul 2019 13:34:32 -0400 Subject: [PATCH 4/6] Add option/optgroup (all browsers have this), and alphabetize --- source | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source b/source index 0ea73c65b5b..1fbe549ec99 100644 --- a/source +++ b/source @@ -73709,9 +73709,10 @@ END:VCARD

The tabIndex IDL attribute must reflect the value of the tabindex content - attribute. Its default value is 0 if the element is an input, button, - a, textarea, select, iframe, or - area element, and is −1 otherwise.

+ attribute. Its default value is 0 if the element is an a, area, + button, iframe, input, optgroup, + option, select, or textarea element, and is −1 + otherwise.

From c0ab28808b31303240098f0fbbcc65013fbbd3fc Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 9 Jul 2019 13:35:22 -0400 Subject: [PATCH 5/6] Add note --- source | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source b/source index 1fbe549ec99..258a2860cf8 100644 --- a/source +++ b/source @@ -73714,6 +73714,8 @@ END:VCARD option, select, or textarea element, and is −1 otherwise.

+

The varying default value based on element type is a historical artifact.

+ From a2a46e3f764b4b18e7178ef4e306611f4cdbf4dc Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 9 Jul 2019 14:06:38 -0400 Subject: [PATCH 6/6] Not option or optgroup, oops. Yes summary, in some cases. Ugh. --- source | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/source b/source index 258a2860cf8..56152a2cb65 100644 --- a/source +++ b/source @@ -57285,18 +57285,30 @@ interface HTMLDetailsElement : HTMLElement {
-

The activation behavior of summary elements is to run the following - steps:

+

A summary element is a summary for its parent details if the following + algorithm returns true:

    -
  1. If this summary element has no parent node, then return.

  2. +
  3. If this summary element has no parent, then return false.

  4. -
  5. Let parent be this summary element's parent node.

    +
  6. Let parent be this summary element's parent.

  7. -
  8. If parent is not a details element, then return.

    +
  9. If parent is not a details element, then return false.

  10. If parent's first summary element child is not this - summary element, then return.

  11. + summary element, then return false.

    + +
  12. Return true.

  13. +
+ +

The activation behavior of summary elements is to run the following + steps:

+ +
    +
  1. If this summary element is not the summary for its parent + details, then return.

  2. + +
  3. Let parent be this summary element's parent.

  4. If the open attribute is present on @@ -73709,10 +73721,10 @@ END:VCARD

    The tabIndex IDL attribute must reflect the value of the tabindex content - attribute. Its default value is 0 if the element is an a, area, - button, iframe, input, optgroup, - option, select, or textarea element, and is −1 - otherwise.

    + attribute. The default value is 0 if the element is an a, area, + button, iframe, input, select, or + textarea element, or is a summary element that is a summary for + its parent details. The default value is −1 otherwise.

    The varying default value based on element type is a historical artifact.