Skip to content

Commit

Permalink
Fix MDN URLs in API folder (#5203)
Browse files Browse the repository at this point in the history
* Linter for mdn_url

* Drop non-data changes

* Drop identifier changes

* Document.wasDiscarded URL

* Drop changes to api/Headers.json
  • Loading branch information
bershanskiy authored and queengooborg committed Dec 1, 2019
1 parent fdfadb2 commit 13bd6cf
Show file tree
Hide file tree
Showing 34 changed files with 57 additions and 59 deletions.
2 changes: 1 addition & 1 deletion api/AudioNode.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
},
"channelCountMode": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode",
"support": {
"chrome": {
"version_added": "14"
Expand Down
2 changes: 1 addition & 1 deletion api/Bluetooth.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
},
"onavailabilitychanged": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Bluetooth/getAvailability",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Bluetooth/onavailabilitychanged",
"support": {
"chrome": [
{
Expand Down
2 changes: 1 addition & 1 deletion api/CSSStyleSheet.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
},
"rules": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules",
"support": {
"chrome": {
"version_added": true
Expand Down
2 changes: 1 addition & 1 deletion api/DOMTokenList.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
},
"forEach": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DOMTokenList/foreach",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DOMTokenList/forEach",
"support": {
"chrome": {
"version_added": "45"
Expand Down
3 changes: 2 additions & 1 deletion api/Document.json
Original file line number Diff line number Diff line change
Expand Up @@ -3859,7 +3859,7 @@
},
"exitFullscreen": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/exitFullScreen",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen",
"support": {
"chrome": [
{
Expand Down Expand Up @@ -9955,6 +9955,7 @@
},
"wasDiscarded": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document",
"support": {
"chrome": {
"version_added": "68"
Expand Down
8 changes: 4 additions & 4 deletions api/Element.json
Original file line number Diff line number Diff line change
Expand Up @@ -7752,7 +7752,7 @@
"touchcancel_event": {
"__compat": {
"description": "<code>touchcancel</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/touchcancel_event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event",
"support": {
"chrome": {
"version_added": "22"
Expand Down Expand Up @@ -7801,7 +7801,7 @@
"touchend_event": {
"__compat": {
"description": "<code>touchend</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/touchend_event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/touchend_event",
"support": {
"chrome": {
"version_added": "22"
Expand Down Expand Up @@ -7850,7 +7850,7 @@
"touchmove_event": {
"__compat": {
"description": "<code>touchmove</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/touchmove_event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/touchmove_event",
"support": {
"chrome": {
"version_added": "22"
Expand Down Expand Up @@ -7899,7 +7899,7 @@
"touchstart_event": {
"__compat": {
"description": "<code>touchstart</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/touchstart_event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/touchstart_event",
"support": {
"chrome": {
"version_added": "22"
Expand Down
8 changes: 4 additions & 4 deletions api/FileReaderSync.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"readAsArrayBuffer": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FileReaderSync#readAsArrayBuffer()",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer",
"support": {
"chrome": {
"version_added": true
Expand Down Expand Up @@ -91,7 +91,7 @@
},
"readAsBinaryString": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FileReaderSync#readAsBinaryString()",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString",
"support": {
"chrome": {
"version_added": true
Expand Down Expand Up @@ -136,7 +136,7 @@
},
"readAsDataURL": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FileReaderSync#readAsDataURL()",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL",
"support": {
"chrome": {
"version_added": true
Expand Down Expand Up @@ -181,7 +181,7 @@
},
"readAsText": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FileReaderSync#readAsBinaryText()",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText",
"support": {
"chrome": {
"version_added": true
Expand Down
3 changes: 0 additions & 3 deletions api/FormData.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
},
"SupportForOf": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FormData",
"description": "Support of <code>for...of</code>",
"support": {
"chrome": {
Expand Down Expand Up @@ -200,7 +199,6 @@
},
"AppendWithFilename": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FormData/append",
"description": "<code>append</code> with filename",
"support": {
"chrome": {
Expand Down Expand Up @@ -634,7 +632,6 @@
},
"worker_support": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/FormData",
"description": "Available in workers",
"support": {
"chrome": {
Expand Down
2 changes: 1 addition & 1 deletion api/HTMLElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@
},
"offsetTop": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop",
"support": {
"chrome": {
"version_added": "47"
Expand Down
2 changes: 1 addition & 1 deletion api/HTMLFieldSetElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
},
"reportValidity": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity",
"support": {
"chrome": {
"version_added": "40"
Expand Down
2 changes: 1 addition & 1 deletion api/HTMLImageElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@
},
"height": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height",
"support": {
"chrome": {
"version_added": "1"
Expand Down
6 changes: 3 additions & 3 deletions api/HTMLInputElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@
},
"onsearch": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/Events/search",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLInputElement/onsearch",
"support": {
"chrome": {
"version_added": true
Expand Down Expand Up @@ -978,7 +978,7 @@
},
"reportValidity": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity",
"support": {
"chrome": {
"version_added": "40"
Expand Down Expand Up @@ -1071,7 +1071,7 @@
"search_event": {
"__compat": {
"description": "<code>search</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/Events/search",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLInputElement/search_event",
"support": {
"chrome": {
"version_added": true
Expand Down
2 changes: 1 addition & 1 deletion api/HTMLSelectElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@
},
"reportValidity": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity",
"support": {
"chrome": {
"version_added": "40"
Expand Down
2 changes: 1 addition & 1 deletion api/HTMLSourceElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
},
"sizes": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/sizes",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes",
"support": {
"chrome": {
"version_added": true
Expand Down
2 changes: 1 addition & 1 deletion api/HTMLStyleElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
},
"sheet": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LinkStyle/sheet",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/sheet",
"support": {
"chrome": {
"version_added": true
Expand Down
2 changes: 1 addition & 1 deletion api/HTMLTextAreaElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
},
"reportValidity": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity",
"support": {
"chrome": {
"version_added": "40"
Expand Down
2 changes: 1 addition & 1 deletion api/IDBTransaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@
},
"objectStoreNames": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/IDBTransaction/ObjectStoreNames",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames",
"support": {
"chrome": {
"version_added": "48"
Expand Down
2 changes: 1 addition & 1 deletion api/LocalFileSystem.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
},
"resolveLocalFileSystemURL": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LocalFileSystem#resolveLocalFileSystemURL()",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/LocalFileSystem#resolveLocalFileSystemURL",
"support": {
"chrome": {
"version_added": "13"
Expand Down
2 changes: 1 addition & 1 deletion api/MIDIAccess.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
},
"statechange_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event",
"description": "<code>statechange</code> event",
"support": {
"chrome": {
Expand Down
2 changes: 1 addition & 1 deletion api/Magnetometer.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
},
"x": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Magnetometer/y",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Magnetometer/x",
"support": {
"chrome": {
"version_added": "69"
Expand Down
4 changes: 2 additions & 2 deletions api/MediaStreamTrackAudioSourceOptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"api": {
"MediaStreamTrackAudioSourceOptions": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/falseMediaStreamTrackAudioSourceOptions",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MediaStreamTrackAudioSourceOptions",
"support": {
"chrome": {
"version_added": false
Expand Down Expand Up @@ -49,7 +49,7 @@
},
"mediaStreamTrack": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/falseMediaStreamTrackAudioSourceOptions/mediaStreamTrack",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MediaStreamTrackAudioSourceOptions/mediaStreamTrack",
"support": {
"chrome": {
"version_added": false
Expand Down
4 changes: 2 additions & 2 deletions api/MediaTrackSupportedConstraints.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
},
"displaySurface": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MediaTrackSettings/displaySurface",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MediaTrackSupportedConstraints/displaySurface",
"support": {
"chrome": {
"version_added": false
Expand Down Expand Up @@ -600,7 +600,7 @@
},
"logicalSurface": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MediaTrackSettings/logicalSurface",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MediaTrackSupportedConstraints/logicalSurface",
"support": {
"chrome": {
"version_added": false
Expand Down
2 changes: 1 addition & 1 deletion api/MerchantValidationEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
},
"methodName": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MerchantValidationEvent//methodName",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/MerchantValidationEvent/methodName",
"support": {
"chrome": {
"version_added": false
Expand Down
2 changes: 1 addition & 1 deletion api/OffscreenCanvas.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
},
"convertToBlob": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/toBlob",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob",
"support": {
"chrome": {
"version_added": "69"
Expand Down
4 changes: 2 additions & 2 deletions api/PictureInPicture.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
},
"onresize": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/PictureInPicture/height",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/PictureInPicture/onresize",
"support": {
"chrome": {
"version_added": "69",
Expand Down Expand Up @@ -187,7 +187,7 @@
},
"width": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/PictureInPicture/height",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/PictureInPicture/width",
"support": {
"chrome": {
"version_added": "69",
Expand Down
6 changes: 3 additions & 3 deletions api/RTCIceCredentialType.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"oauth": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/RTCIceCredentialType",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/RTCIceCredentialType#oauth",
"support": {
"chrome": {
"version_added": false
Expand Down Expand Up @@ -97,7 +97,7 @@
},
"password": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/RTCIceCredentialType",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/RTCIceCredentialType#password",
"support": {
"chrome": {
"version_added": false
Expand Down Expand Up @@ -145,7 +145,7 @@
},
"token": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/RTCIceCredentialType",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/RTCIceCredentialType#token",
"support": {
"chrome": {
"version_added": false
Expand Down
2 changes: 1 addition & 1 deletion api/RTCRtpStreamStats.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"codecId": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/RTCRtpStreamStats/kind",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/RTCRtpStreamStats/codecId",
"support": {
"chrome": {
"version_added": false
Expand Down
2 changes: 1 addition & 1 deletion api/SVGImageElement.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
},
"preserveAspectRatio": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SVGImageElement/prserveAspectRatio",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio",
"support": {
"chrome": {
"version_added": "1"
Expand Down
Loading

0 comments on commit 13bd6cf

Please sign in to comment.