From 2a10df50bcfec6908fcafe68d0c31048c5543583 Mon Sep 17 00:00:00 2001
From: Patricia Aas
Date: Tue, 17 Apr 2018 16:49:34 +0200
Subject: [PATCH] Focus the dialog instead of the first item (#1331)
fix #773
* Fixed Dialog Focus according to issue 773
* marked as potentially at risk
---
includes/status.include | 3 ++-
sections/acknowledgements.include | 13 +++++++++++++
sections/changes.include | 5 +++++
sections/semantics-interactive-elements.include | 5 +----
4 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/includes/status.include b/includes/status.include
index 80468cd89e..3544302821 100644
--- a/includes/status.include
+++ b/includes/status.include
@@ -10,7 +10,8 @@ will be not be included in a Proposed Recommendation,
per [W3C Process - 6.4 Candidate Recommendation](https://www.w3.org/2017/Process-20170301/#candidate-rec):
- - the <{input/autocapitalize}> attribute;
+ - the <{autocapitalize}> attribute;
+ - focusing the dialog instead of the first focusable element if there are no autofocus elements, see issue 773
- the <{media/disableRemotePlayback}> attribute;
- {{registerContentHandler()}}, {{unregisterContentHandler()}} and {{isContentHandlerRegistered()}} methods;
- customized built-in elements and the <{global/is}> attribute
diff --git a/sections/acknowledgements.include b/sections/acknowledgements.include
index c0f4979fc7..2fd5474d64 100644
--- a/sections/acknowledgements.include
+++ b/sections/acknowledgements.include
@@ -39,9 +39,11 @@
"adugamayuba",
Ajay Data,
Alex Danilo,
+ Alexander Surkov,
Alex Komoroske,
Alex Russell,
Alexandre Borela,
+ Alastair Campbell,
Amelia Bellamy-Royds,
Andrea Rendine,
Andres Rios,
@@ -55,12 +57,15 @@
Chris Harvey,
Chris Rebert,
Collin Anderson,
+ Dan Beam,
Daniel Buchner,
David Hyatt,
David Singer,
+ Darryl Pogue,
"Decaid",
Derek Gray,
Devarshi Pant,
+ Dominic Mazzoni,
Diego Ferreiro Val,
Dimitri Glazkov,
Dominic Cooney,
@@ -70,9 +75,12 @@
Eric Bailey,
Erik Arvidsson,
Fabian Pijcke,
+ freshp86,
Hajime Morrita,
Hayato Ito,
+ Heydon Pickering,
J.C.Jones,
+ James Craig,
Jan Miksovsky,
Jimmy Bosse,
"Jinjiang 勾三股四",
@@ -85,14 +93,17 @@
Jonathan T Neal,
Jothan Frake,
Justin Falgani,
+ 田村健人 (TAMURA Kent),
Koji Ishii,
Leif Halvard Silli,
Léonie Watson,
Lea Verou,
Maciej Stachowiak,
+ Marco Zehe,
Mark Svancarek,
Martin Janecke,
Marvin Woo 吴秀诚,
+ Matt Falkenhagen,
Mike™ Smith,
Mike West,
"Miketubby",
@@ -120,6 +131,7 @@
Ronald Eddy jr.,
Ryosuke Niwa,
Sailesh Panchang,
+ Sam Thorogood,
Scott Miles,
"SelenIT",
Shawn Steele,
@@ -128,6 +140,7 @@
Steven Faulkner,
Steven Skelton,
Tab Atkins,
+ Takayoshi Kochi,
Theresa O'Connor,
Tim Perry,
Todor Todorov,
diff --git a/sections/changes.include b/sections/changes.include
index abf62d0f14..b7c5f3d6d6 100644
--- a/sections/changes.include
+++ b/sections/changes.include
@@ -30,6 +30,11 @@
Fixed issue 1217
-
+ Focusing the dialog instead of the first focusable element if there are no autofocus elements
+
+ -
+ Substantive change. Fixes issue 773. Potentially at risk.
+
Clarify that the DOCTYPE is ignored, if present, for srcdoc
-
diff --git a/sections/semantics-interactive-elements.include b/sections/semantics-interactive-elements.include
index 9a7d29c7d5..60620025b5 100644
--- a/sections/semantics-interactive-elements.include
+++ b/sections/semantics-interactive-elements.include
@@ -663,10 +663,7 @@
Let control be the first non-inert focusable area in
subject's control group whose DOM anchor has an <{formelements/autofocus}> attribute specified.
- If there isn't one, then let control be the first non-inert
- focusable area in subject's control group.
-
- If there isn't one of those either, then let control be subject.
+ If there isn't one, then let control be subject.