Skip to content

Commit 1862105

Browse files
autonomecaptainbrossetddbeck
authored
Add global element attributes/properties (#2423)
Co-authored-by: Patrick Brosset <[email protected]> Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 92d6be7 commit 1862105

32 files changed

+563
-17
lines changed

features/accesskey.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Accesskey
2+
description: The `accessKey` global HTML attribute gives a hint for generating a keyboard shortcut for the current element. The attribute value must consist of a single printable character.
3+
spec: https://html.spec.whatwg.org/multipage/interaction.html#the-accesskey-attribute
4+
status:
5+
compute_from: api.HTMLElement.accessKey
6+
compat_features:
7+
- api.HTMLElement.accessKey
8+
- api.HTMLElement.accessKeyLabel
9+
- html.global_attributes.accesskey

features/accesskey.yml.dist

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Generated from: accesskey.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2015-07-29
7+
baseline_high_date: 2018-01-29
8+
support:
9+
chrome: "17"
10+
chrome_android: "18"
11+
edge: "12"
12+
firefox: "5"
13+
firefox_android: "5"
14+
safari: "6"
15+
safari_ios: "6"
16+
compat_features:
17+
# baseline: high
18+
# baseline_low_date: 2015-07-29
19+
# baseline_high_date: 2018-01-29
20+
# support:
21+
# chrome: "1"
22+
# chrome_android: "18"
23+
# edge: "12"
24+
# firefox: "1"
25+
# firefox_android: "4"
26+
# safari: ≤4
27+
# safari_ios: ≤3.2
28+
- html.global_attributes.accesskey
29+
30+
# ⬇️ Same status as overall feature ⬇️
31+
# baseline: high
32+
# baseline_low_date: 2015-07-29
33+
# baseline_high_date: 2018-01-29
34+
# support:
35+
# chrome: "17"
36+
# chrome_android: "18"
37+
# edge: "12"
38+
# firefox: "5"
39+
# firefox_android: "5"
40+
# safari: "6"
41+
# safari_ios: "6"
42+
- api.HTMLElement.accessKey
43+
44+
# baseline: false
45+
# support:
46+
# firefox: "8"
47+
# firefox_android: "8"
48+
# safari: "14"
49+
# safari_ios: "14"
50+
- api.HTMLElement.accessKeyLabel

features/autocapitalize.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Autocapitalize
2+
description: The `autocapitalize` global HTML attribute sets the virtual keyboard capitalization behavior for user input on an element, such as the first letter of sentences or all words.
3+
spec: https://html.spec.whatwg.org/multipage/interaction.html#autocapitalization
4+
compat_features:
5+
- api.HTMLElement.autocapitalize
6+
- html.global_attributes.autocapitalize

features/autocapitalize.yml.dist

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Generated from: autocapitalize.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "66"
8+
chrome_android: "66"
9+
edge: "79"
10+
firefox: "111"
11+
firefox_android: "111"
12+
safari_ios: "10.3"
13+
compat_features:
14+
# baseline: false
15+
# support:
16+
# chrome: "43"
17+
# chrome_android: "43"
18+
# edge: "79"
19+
# firefox: "111"
20+
# firefox_android: "111"
21+
# safari_ios: "5"
22+
- html.global_attributes.autocapitalize
23+
24+
# ⬇️ Same status as overall feature ⬇️
25+
# baseline: false
26+
# support:
27+
# chrome: "66"
28+
# chrome_android: "66"
29+
# edge: "79"
30+
# firefox: "111"
31+
# firefox_android: "111"
32+
# safari_ios: "10.3"
33+
- api.HTMLElement.autocapitalize

features/autocorrect.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Autocorrect
2+
description: The `autocorrect` global HTML attribute controls whether to automatically correct spelling or punctuation errors for user input.
3+
spec: https://html.spec.whatwg.org/multipage/interaction.html#autocorrection
4+
compat_features:
5+
- api.HTMLElement.autocorrect
6+
- html.global_attributes.autocorrect

features/autocorrect.yml.dist

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: autocorrect.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support: {}
7+
compat_features:
8+
# baseline: false
9+
# support:
10+
# safari: "14.1"
11+
# safari_ios: "14.5"
12+
- api.HTMLElement.autocorrect
13+
14+
# ⬇️ Same status as overall feature ⬇️
15+
# baseline: false
16+
# support: {}
17+
- html.global_attributes.autocorrect

features/change-event.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Change event
2+
description: The `change` event for `<input>`, `<select>`, and `<textarea>` elements fires when the user modifies the element's value. Unlike the `input` event, the change event does not necessarily fire on every alteration to an element's value.
3+
spec:
4+
- https://html.spec.whatwg.org/multipage/indices.html#event-change
5+
- https://html.spec.whatwg.org/multipage/webappapis.html#handler-onchange
6+
compat_features:
7+
- api.HTMLElement.change_event

features/change-event.yml.dist

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: change-event.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2015-07-29
7+
baseline_high_date: 2018-01-29
8+
support:
9+
chrome: "1"
10+
chrome_android: "18"
11+
edge: "12"
12+
firefox: "1"
13+
firefox_android: "4"
14+
safari: "3"
15+
safari_ios: "2"
16+
compat_features:
17+
- api.HTMLElement.change_event
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: 'contenteditable="plaintext-only"'
2+
description: The `contenteditable="plaintext-only"` global HTML attribute allows the user to edit the content of an element, but prevents rich-text formatting.
3+
spec: https://html.spec.whatwg.org/multipage/interaction.html#attr-contenteditable-plaintextonly-state
4+
compat_features:
5+
- html.global_attributes.contenteditable.plaintext-only
6+
- api.HTMLElement.contentEditable.plaintext-only
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Generated from: contenteditable-plaintextonly.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "51"
8+
chrome_android: "51"
9+
edge: ≤79
10+
safari: ≤13.1
11+
safari_ios: ≤13.4
12+
compat_features:
13+
# baseline: false
14+
# support:
15+
# chrome: "51"
16+
# chrome_android: "51"
17+
# edge: ≤79
18+
# safari: "5.1"
19+
# safari_ios: "5"
20+
- api.HTMLElement.contentEditable.plaintext-only
21+
22+
# ⬇️ Same status as overall feature ⬇️
23+
# baseline: false
24+
# support:
25+
# chrome: "51"
26+
# chrome_android: "51"
27+
# edge: ≤79
28+
# safari: ≤13.1
29+
# safari_ios: ≤13.4
30+
- html.global_attributes.contenteditable.plaintext-only

features/contenteditable.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Contenteditable
2+
description: The `contenteditable` global HTML attribute allows the user to edit the content of an element, such as inserting or deleting text.
3+
spec: https://html.spec.whatwg.org/multipage/interaction.html#contenteditable
4+
caniuse: contenteditable
5+
compat_features:
6+
- html.global_attributes.contenteditable
7+
- api.HTMLElement.contentEditable
8+
- api.HTMLElement.inputMode
9+
- api.HTMLElement.isContentEditable

features/contenteditable.yml.dist

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Generated from: contenteditable.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2021-12-07
7+
baseline_high_date: 2024-06-07
8+
support:
9+
chrome: "66"
10+
chrome_android: "66"
11+
edge: "79"
12+
firefox: "95"
13+
firefox_android: "79"
14+
safari: "12.1"
15+
safari_ios: "12.2"
16+
compat_features:
17+
# baseline: high
18+
# baseline_low_date: 2015-07-29
19+
# baseline_high_date: 2018-01-29
20+
# support:
21+
# chrome: "1"
22+
# chrome_android: "18"
23+
# edge: "12"
24+
# firefox: "3"
25+
# firefox_android: "4"
26+
# safari: "3"
27+
# safari_ios: "1"
28+
- api.HTMLElement.contentEditable
29+
30+
# baseline: high
31+
# baseline_low_date: 2015-07-29
32+
# baseline_high_date: 2018-01-29
33+
# support:
34+
# chrome: "1"
35+
# chrome_android: "18"
36+
# edge: "12"
37+
# firefox: "3"
38+
# firefox_android: "4"
39+
# safari: ≤4
40+
# safari_ios: ≤3.2
41+
- html.global_attributes.contenteditable
42+
43+
# baseline: high
44+
# baseline_low_date: 2015-07-29
45+
# baseline_high_date: 2018-01-29
46+
# support:
47+
# chrome: "1"
48+
# chrome_android: "18"
49+
# edge: "12"
50+
# firefox: "4"
51+
# firefox_android: "4"
52+
# safari: "3"
53+
# safari_ios: "1"
54+
- api.HTMLElement.isContentEditable
55+
56+
# ⬇️ Same status as overall feature ⬇️
57+
# baseline: high
58+
# baseline_low_date: 2021-12-07
59+
# baseline_high_date: 2024-06-07
60+
# support:
61+
# chrome: "66"
62+
# chrome_android: "66"
63+
# edge: "79"
64+
# firefox: "95"
65+
# firefox_android: "79"
66+
# safari: "12.1"
67+
# safari_ios: "12.2"
68+
- api.HTMLElement.inputMode

features/csp.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ compat_features:
2626
- api.CSPViolationReportBody.toJSON
2727
- api.Document.securitypolicyviolation_event
2828
- api.Element.securitypolicyviolation_event
29+
- api.HTMLElement.nonce
2930
- api.HTMLIFrameElement.csp
3031
- api.SecurityPolicyViolationEvent
3132
- api.SecurityPolicyViolationEvent.SecurityPolicyViolationEvent
@@ -45,6 +46,8 @@ compat_features:
4546
- api.WorkerGlobalScope.securitypolicyviolation_event
4647
- html.elements.iframe.csp
4748
- html.elements.meta.http-equiv.content-security-policy
49+
- html.global_attributes.nonce
50+
- html.global_attributes.nonce.nonce_hiding
4851
- http.headers.Content-Security-Policy
4952
- http.headers.Content-Security-Policy-Report-Only
5053
- http.headers.Content-Security-Policy.base-uri

features/csp.yml.dist

+35
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,32 @@ compat_features:
232232
# safari_ios: "15.4"
233233
- http.headers.Content-Security-Policy.report-sample
234234

235+
# baseline: high
236+
# baseline_low_date: 2022-03-14
237+
# baseline_high_date: 2024-09-14
238+
# support:
239+
# chrome: "61"
240+
# chrome_android: "61"
241+
# edge: "79"
242+
# firefox: "31"
243+
# firefox_android: "31"
244+
# safari: "15.4"
245+
# safari_ios: "15.4"
246+
- html.global_attributes.nonce
247+
248+
# baseline: high
249+
# baseline_low_date: 2022-03-14
250+
# baseline_high_date: 2024-09-14
251+
# support:
252+
# chrome: "61"
253+
# chrome_android: "61"
254+
# edge: "79"
255+
# firefox: "75"
256+
# firefox_android: "79"
257+
# safari: "15.4"
258+
# safari_ios: "15.4"
259+
- api.HTMLElement.nonce
260+
235261
# baseline: high
236262
# baseline_low_date: 2022-03-14
237263
# baseline_high_date: 2024-09-14
@@ -328,6 +354,15 @@ compat_features:
328354
# firefox_android: "63"
329355
- api.SecurityPolicyViolationEvent.worker_support
330356

357+
# baseline: false
358+
# support:
359+
# chrome: "61"
360+
# chrome_android: "61"
361+
# edge: "79"
362+
# firefox: "75"
363+
# firefox_android: "79"
364+
- html.global_attributes.nonce.nonce_hiding
365+
331366
# baseline: false
332367
# support:
333368
# chrome: "70"

features/details.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ compat_features:
99
- api.HTMLDetailsElement
1010
- api.HTMLDetailsElement.open
1111
- api.HTMLElement.toggle_event
12+
- api.HTMLElement.toggle_event.details_elements
1213
- html.elements.details
1314
- html.elements.details.open

features/details.yml.dist

+1
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,4 @@ compat_features:
5555
# safari: "10.1"
5656
# safari_ios: "10.3"
5757
- api.HTMLElement.toggle_event
58+
- api.HTMLElement.toggle_event.details_elements

features/dialog.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ description: The `<dialog>` HTML element represents a modal or non-modal dialog
33
spec: https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element
44
group: html-elements
55
caniuse: dialog
6+
status:
7+
compute_from: html.elements.dialog
68
compat_features:
79
- api.HTMLDialogElement
810
- api.HTMLDialogElement.cancel_event
@@ -12,5 +14,7 @@ compat_features:
1214
- api.HTMLDialogElement.returnValue
1315
- api.HTMLDialogElement.show
1416
- api.HTMLDialogElement.showModal
17+
- api.HTMLElement.beforetoggle_event.dialog_elements
18+
- api.HTMLElement.toggle_event.dialog_elements
1519
- html.elements.dialog
1620
- html.elements.dialog.open

features/dialog.yml.dist

+19
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ status:
1414
safari: "15.4"
1515
safari_ios: "15.4"
1616
compat_features:
17+
# ⬇️ Same status as overall feature ⬇️
18+
# baseline: high
19+
# baseline_low_date: 2022-03-14
20+
# baseline_high_date: 2024-09-14
21+
# support:
22+
# chrome: "37"
23+
# chrome_android: "37"
24+
# edge: "79"
25+
# firefox: "98"
26+
# firefox_android: "98"
27+
# safari: "15.4"
28+
# safari_ios: "15.4"
1729
- api.HTMLDialogElement
1830
- api.HTMLDialogElement.cancel_event
1931
- api.HTMLDialogElement.close
@@ -24,3 +36,10 @@ compat_features:
2436
- api.HTMLDialogElement.showModal
2537
- html.elements.dialog
2638
- html.elements.dialog.open
39+
40+
# baseline: false
41+
# support:
42+
# firefox: "133"
43+
# firefox_android: "133"
44+
- api.HTMLElement.beforetoggle_event.dialog_elements
45+
- api.HTMLElement.toggle_event.dialog_elements

0 commit comments

Comments
 (0)