Skip to content

Commit 5a2c675

Browse files
autonomeddbeck
andauthored
Add hashchange event (#1908)
Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 0f81ffb commit 5a2c675

File tree

4 files changed

+79
-44
lines changed

4 files changed

+79
-44
lines changed

features/draft/spec/html.yml

-4
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,6 @@ compat_features:
239239
- api.HTMLTemplateElement.shadowRootSerializable
240240
- api.HTMLUnknownElement
241241
- api.HTMLVideoElement.playsInline
242-
- api.HashChangeEvent
243-
- api.HashChangeEvent.HashChangeEvent
244-
- api.HashChangeEvent.newURL
245-
- api.HashChangeEvent.oldURL
246242
- api.ImageData
247243
- api.ImageData.ImageData
248244
- api.ImageData.colorSpace

features/draft/spec/html.yml.dist

-40
Original file line numberDiff line numberDiff line change
@@ -1222,33 +1222,6 @@ compat_features:
12221222
# safari_ios: "5"
12231223
- html.elements.input.type_number
12241224

1225-
# baseline: high
1226-
# baseline_low_date: 2015-07-29
1227-
# baseline_high_date: 2018-01-29
1228-
# support:
1229-
# chrome: "8"
1230-
# chrome_android: "18"
1231-
# edge: "12"
1232-
# firefox: "3.6"
1233-
# firefox_android: "4"
1234-
# safari: "5"
1235-
# safari_ios: "5"
1236-
- api.HashChangeEvent
1237-
1238-
# baseline: high
1239-
# baseline_low_date: 2015-07-29
1240-
# baseline_high_date: 2018-01-29
1241-
# support:
1242-
# chrome: "8"
1243-
# chrome_android: "18"
1244-
# edge: "12"
1245-
# firefox: "6"
1246-
# firefox_android: "6"
1247-
# safari: "5.1"
1248-
# safari_ios: "5"
1249-
- api.HashChangeEvent.newURL
1250-
- api.HashChangeEvent.oldURL
1251-
12521225
# baseline: high
12531226
# baseline_low_date: 2015-07-29
12541227
# baseline_high_date: 2018-01-29
@@ -1406,19 +1379,6 @@ compat_features:
14061379
# safari_ios: "6"
14071380
- api.HTMLUnknownElement
14081381

1409-
# baseline: high
1410-
# baseline_low_date: 2015-07-29
1411-
# baseline_high_date: 2018-01-29
1412-
# support:
1413-
# chrome: "16"
1414-
# chrome_android: "18"
1415-
# edge: "12"
1416-
# firefox: "11"
1417-
# firefox_android: "14"
1418-
# safari: "6"
1419-
# safari_ios: "6"
1420-
- api.HashChangeEvent.HashChangeEvent
1421-
14221382
# baseline: high
14231383
# baseline_low_date: 2015-07-29
14241384
# baseline_high_date: 2018-01-29

features/hashchange.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: hashchange
2+
description: "The `hashchange` event fires when the URL fragment identifier (the part of the URL starting with `#`) of the current page has changed."
3+
spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-hashchangeevent-interface
4+
caniuse: hashchange
5+
compat_features:
6+
- api.HashChangeEvent
7+
- api.HashChangeEvent.HashChangeEvent
8+
- api.HashChangeEvent.newURL
9+
- api.HashChangeEvent.oldURL
10+
- api.Window.hashchange_event

features/hashchange.yml.dist

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Generated from: hashchange.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: "16"
10+
chrome_android: "18"
11+
edge: "12"
12+
firefox: "11"
13+
firefox_android: "14"
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: "4"
22+
# chrome_android: "18"
23+
# edge: "12"
24+
# firefox: "3.6"
25+
# firefox_android: "4"
26+
# safari: "5"
27+
# safari_ios: "5"
28+
- api.Window.hashchange_event
29+
30+
# baseline: high
31+
# baseline_low_date: 2015-07-29
32+
# baseline_high_date: 2018-01-29
33+
# support:
34+
# chrome: "8"
35+
# chrome_android: "18"
36+
# edge: "12"
37+
# firefox: "3.6"
38+
# firefox_android: "4"
39+
# safari: "5"
40+
# safari_ios: "5"
41+
- api.HashChangeEvent
42+
43+
# baseline: high
44+
# baseline_low_date: 2015-07-29
45+
# baseline_high_date: 2018-01-29
46+
# support:
47+
# chrome: "8"
48+
# chrome_android: "18"
49+
# edge: "12"
50+
# firefox: "6"
51+
# firefox_android: "6"
52+
# safari: "5.1"
53+
# safari_ios: "5"
54+
- api.HashChangeEvent.newURL
55+
- api.HashChangeEvent.oldURL
56+
57+
# ⬇️ Same status as overall feature ⬇️
58+
# baseline: high
59+
# baseline_low_date: 2015-07-29
60+
# baseline_high_date: 2018-01-29
61+
# support:
62+
# chrome: "16"
63+
# chrome_android: "18"
64+
# edge: "12"
65+
# firefox: "11"
66+
# firefox_android: "14"
67+
# safari: "6"
68+
# safari_ios: "6"
69+
- api.HashChangeEvent.HashChangeEvent

0 commit comments

Comments
 (0)