Skip to content

Commit 3e6b531

Browse files
committed
Exclude search element from html checks for now
1 parent 494e23d commit 3e6b531

File tree

2 files changed

+15
-27
lines changed

2 files changed

+15
-27
lines changed

Diff for: components/dash-html-components/scripts/data/attributes.json

+12-25
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@
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-
},
6657
"autoPlay": {
6758
"elements": [
6859
"audio",
@@ -760,7 +751,6 @@
760751
"accept",
761752
"alt",
762753
"autoComplete",
763-
"autoFocus",
764754
"capture",
765755
"checked",
766756
"disabled",
@@ -848,7 +838,6 @@
848838
],
849839
"select": [
850840
"autoComplete",
851-
"autoFocus",
852841
"disabled",
853842
"form",
854843
"multiple",
@@ -858,7 +847,6 @@
858847
],
859848
"textarea": [
860849
"autoComplete",
861-
"autoFocus",
862850
"cols",
863851
"disabled",
864852
"form",
@@ -872,19 +860,6 @@
872860
"rows",
873861
"wrap"
874862
],
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-
],
888863
"audio": [
889864
"autoPlay",
890865
"controls",
@@ -967,6 +942,18 @@
967942
"src",
968943
"srcLang"
969944
],
945+
"button": [
946+
"disabled",
947+
"form",
948+
"formAction",
949+
"formEncType",
950+
"formMethod",
951+
"formNoValidate",
952+
"formTarget",
953+
"name",
954+
"type",
955+
"value"
956+
],
970957
"fieldset": [
971958
"disabled",
972959
"form",

Diff for: components/dash-html-components/scripts/extract-elements.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const expectedElCount = 125;
1313
*/
1414
function extractElements($) {
1515
const excludeElements = [
16-
'html', 'head', 'body', 'style', 'h1–h6', 'input',
16+
'html', 'head', 'body', 'style', 'h1–h6', 'input', 'search',
1717
// out of scope, different namespaces - but Mozilla added these to the
1818
// above reference page Jan 2021 so we need to exclude them now.
1919
// see https://github.com/mdn/content/pull/410
@@ -22,7 +22,8 @@ function extractElements($) {
2222
'image', 'dir', 'tt', 'applet', 'noembed', 'bgsound', 'menu', 'menuitem',
2323
'noframes',
2424
// experimental, don't add yet
25-
'portal'
25+
'portal',
26+
'search',
2627
];
2728
// `<section>` is for some reason missing from the reference tables.
2829
const addElements = [

0 commit comments

Comments
 (0)