Skip to content

Commit cf10e8c

Browse files
Update LargestContentfulPaint spec URLs (mdn#16527)
* Update LargestContentfulPaint spec URLs These should be using https://w3c.github.io/largest-contentful-paint URLs rather than https://www.w3.org/TR/largest-contentful-paint URLs. * Add exception for Largest Contentful Paint ED
1 parent d1fab92 commit cf10e8c

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

api/LargestContentfulPaint.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"LargestContentfulPaint": {
44
"__compat": {
55
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint",
6-
"spec_url": "https://www.w3.org/TR/largest-contentful-paint//#sec-largest-contentful-paint-interface",
6+
"spec_url": "https://w3c.github.io/largest-contentful-paint/#sec-largest-contentful-paint-interface",
77
"support": {
88
"chrome": {
99
"version_added": "77"
@@ -35,7 +35,7 @@
3535
"element": {
3636
"__compat": {
3737
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element",
38-
"spec_url": "https://www.w3.org/TR/largest-contentful-paint//#dom-largestcontentfulpaint-element",
38+
"spec_url": "https://w3c.github.io/largest-contentful-paint/#dom-largestcontentfulpaint-element",
3939
"support": {
4040
"chrome": {
4141
"version_added": "77"
@@ -68,7 +68,7 @@
6868
"id": {
6969
"__compat": {
7070
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id",
71-
"spec_url": "https://www.w3.org/TR/largest-contentful-paint//#dom-largestcontentfulpaint-id",
71+
"spec_url": "https://w3c.github.io/largest-contentful-paint/#dom-largestcontentfulpaint-id",
7272
"support": {
7373
"chrome": {
7474
"version_added": "77"
@@ -101,7 +101,7 @@
101101
"loadTime": {
102102
"__compat": {
103103
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime",
104-
"spec_url": "https://www.w3.org/TR/largest-contentful-paint//#dom-largestcontentfulpaint-loadtime",
104+
"spec_url": "https://w3c.github.io/largest-contentful-paint/#dom-largestcontentfulpaint-loadtime",
105105
"support": {
106106
"chrome": {
107107
"version_added": "77"
@@ -134,7 +134,7 @@
134134
"renderTime": {
135135
"__compat": {
136136
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime",
137-
"spec_url": "https://www.w3.org/TR/largest-contentful-paint//#dom-largestcontentfulpaint-rendertime",
137+
"spec_url": "https://w3c.github.io/largest-contentful-paint/#dom-largestcontentfulpaint-rendertime",
138138
"support": {
139139
"chrome": {
140140
"version_added": "77"
@@ -167,7 +167,7 @@
167167
"size": {
168168
"__compat": {
169169
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size",
170-
"spec_url": "https://www.w3.org/TR/largest-contentful-paint//#dom-largestcontentfulpaint-size",
170+
"spec_url": "https://w3c.github.io/largest-contentful-paint/#dom-largestcontentfulpaint-size",
171171
"support": {
172172
"chrome": {
173173
"version_added": "77"
@@ -200,7 +200,7 @@
200200
"toJSON": {
201201
"__compat": {
202202
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON",
203-
"spec_url": "https://www.w3.org/TR/largest-contentful-paint//#dom-largestcontentfulpaint-tojson",
203+
"spec_url": "https://w3c.github.io/largest-contentful-paint/#dom-largestcontentfulpaint-tojson",
204204
"support": {
205205
"chrome": {
206206
"version_added": "77"
@@ -233,7 +233,7 @@
233233
"url": {
234234
"__compat": {
235235
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url",
236-
"spec_url": "https://www.w3.org/TR/largest-contentful-paint//#dom-largestcontentfulpaint-url",
236+
"spec_url": "https://w3c.github.io/largest-contentful-paint/#dom-largestcontentfulpaint-url",
237237
"support": {
238238
"chrome": {
239239
"version_added": "77"

test/linter/test-spec-urls.ts

+5
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ const specsExceptions = [
4444

4545
// Remove if https://github.com/w3c/mathml/issues/216 is resolved
4646
'https://w3c.github.io/mathml/',
47+
48+
// Remove once https://www.w3.org/TR/largest-contentful-paint/ updates,
49+
// and browser-specs picks up the update; see discussion at
50+
// https://github.com/mdn/browser-compat-data/pull/16527#issuecomment-1145773922
51+
'https://w3c.github.io/largest-contentful-paint/',
4752
];
4853

4954
const allowedSpecURLs = [

0 commit comments

Comments
 (0)