Skip to content

Commit 53bdf71

Browse files
committed
Revert "Exclude search element from html checks for now"
This reverts commit 3e6b531.
1 parent 1623592 commit 53bdf71

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

components/dash-html-components/scripts/data/attributes.json

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@
5454
],
5555
"description": "Indicates whether controls in this form can by default have their values automatically completed by the browser."
5656
},
57+
"autoFocus": {
58+
"elements": [
59+
"button",
60+
"input",
61+
"select",
62+
"textarea"
63+
],
64+
"description": "The element should be automatically focused after the page loaded."
65+
},
5766
"autoPlay": {
5867
"elements": [
5968
"audio",
@@ -751,6 +760,7 @@
751760
"accept",
752761
"alt",
753762
"autoComplete",
763+
"autoFocus",
754764
"capture",
755765
"checked",
756766
"disabled",
@@ -838,6 +848,7 @@
838848
],
839849
"select": [
840850
"autoComplete",
851+
"autoFocus",
841852
"disabled",
842853
"form",
843854
"multiple",
@@ -847,6 +858,7 @@
847858
],
848859
"textarea": [
849860
"autoComplete",
861+
"autoFocus",
850862
"cols",
851863
"disabled",
852864
"form",
@@ -860,6 +872,19 @@
860872
"rows",
861873
"wrap"
862874
],
875+
"button": [
876+
"autoFocus",
877+
"disabled",
878+
"form",
879+
"formAction",
880+
"formEncType",
881+
"formMethod",
882+
"formNoValidate",
883+
"formTarget",
884+
"name",
885+
"type",
886+
"value"
887+
],
863888
"audio": [
864889
"autoPlay",
865890
"controls",
@@ -942,18 +967,6 @@
942967
"src",
943968
"srcLang"
944969
],
945-
"button": [
946-
"disabled",
947-
"form",
948-
"formAction",
949-
"formEncType",
950-
"formMethod",
951-
"formNoValidate",
952-
"formTarget",
953-
"name",
954-
"type",
955-
"value"
956-
],
957970
"fieldset": [
958971
"disabled",
959972
"form",

components/dash-html-components/scripts/extract-elements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function extractElements($) {
2222
'image', 'dir', 'tt', 'applet', 'noembed', 'bgsound', 'menu', 'menuitem',
2323
'noframes',
2424
// experimental, don't add yet
25-
'portal',
25+
'portal'
2626
];
2727
// `<section>` is for some reason missing from the reference tables.
2828
const addElements = [

0 commit comments

Comments
 (0)