Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing urls for Trusted* (and toJSON() entries) #11063

Merged
merged 4 commits into from
Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions api/TrustedHTML.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"api": {
"TrustedHTML": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedHTML",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#trusted-html",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -46,8 +48,59 @@
"deprecated": false
}
},
"toJSON": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedHTML/toJSON",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a few toJSON and toString (stringifier) pages. Like for the iterable pages, they all have a close structure that make them fairly quick to create.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, for them to be useful, they would have to say which attributes are actually serialized in the resulting JSON, since that's often defined by prose in specs and isn't really guessable from looking at https://developer.mozilla.org/en-US/docs/Web/API/TrustedHTML, for example.

"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedhtml-tojson",
"support": {
"chrome": {
"version_added": "90"
},
"chrome_android": {
"version_added": "90"
},
"edge": {
"version_added": "90"
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "76"
},
"opera_android": {
"version_added": false
},
"safari": {
"version_added": false
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": {
"version_added": false
},
"webview_android": {
"version_added": "90"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"toString": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedHTML/toString",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#trustedhtml-stringification-behavior",
"support": {
"chrome": {
"version_added": "83"
Expand Down
53 changes: 53 additions & 0 deletions api/TrustedScript.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"api": {
"TrustedScript": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedScript",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#trusted-script",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -46,8 +48,59 @@
"deprecated": false
}
},
"toJSON": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedScript/toJSON",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedscript-tojson",
"support": {
"chrome": {
"version_added": "90"
},
"chrome_android": {
"version_added": "90"
},
"edge": {
"version_added": "90"
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "76"
},
"opera_android": {
"version_added": false
},
"safari": {
"version_added": false
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": {
"version_added": false
},
"webview_android": {
"version_added": "90"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"toString": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedScript/toString",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#trustedscripturl-stringification-behavior",
"support": {
"chrome": {
"version_added": "83"
Expand Down
53 changes: 53 additions & 0 deletions api/TrustedScriptURL.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"api": {
"TrustedScriptURL": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedScriptURL",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#trused-script-url",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -46,8 +48,59 @@
"deprecated": false
}
},
"toJSON": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedScriptURL/toJSON",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedscripturl-tojson",
"support": {
"chrome": {
"version_added": "90"
},
"chrome_android": {
"version_added": "90"
},
"edge": {
"version_added": "90"
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "76"
},
"opera_android": {
"version_added": false
},
"safari": {
"version_added": false
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": {
"version_added": false
},
"webview_android": {
"version_added": "90"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"toString": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedScriptURL/toString",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#trustedscripturl-stringification-behavior",
"support": {
"chrome": {
"version_added": "83"
Expand Down
10 changes: 10 additions & 0 deletions api/TrustedTypePolicy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"api": {
"TrustedTypePolicy": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicy",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#trusted-type-policy",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -48,6 +50,8 @@
},
"createHTML": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicy/createHTML",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicy-createhtml",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -95,6 +99,8 @@
},
"createScript": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicy/createScript",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicy-createscript",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -142,6 +148,8 @@
},
"createScriptURL": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicy/createScriptURL",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicy-createscripturl",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -189,6 +197,8 @@
},
"name": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicy/name",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicy-name",
"support": {
"chrome": {
"version_added": "83"
Expand Down
20 changes: 20 additions & 0 deletions api/TrustedTypePolicyFactory.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"api": {
"TrustedTypePolicyFactory": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#trusted-type-policy-factory",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -48,6 +50,8 @@
},
"createPolicy": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory/createPolicy",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-createpolicy",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -95,6 +99,8 @@
},
"defaultPolicy": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory/defaultPolicy",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-defaultpolicy",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -142,6 +148,8 @@
},
"emptyHTML": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory/emptyHTML",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-emptyhtml",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -189,6 +197,8 @@
},
"emptyScript": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory/emptyScript",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-emptyscript",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -236,6 +246,8 @@
},
"getAttributeType": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory/getAttributeType",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-getattributetype",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -283,6 +295,8 @@
},
"getPropertyType": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory/getPropertyType",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-getpropertytype",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -330,6 +344,8 @@
},
"isHTML": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory/isHTML",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-ishtml",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -377,6 +393,8 @@
},
"isScript": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory/isScript",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-isscript",
"support": {
"chrome": {
"version_added": "83"
Expand Down Expand Up @@ -424,6 +442,8 @@
},
"isScriptURL": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/TrustedTypePolicyFactory/isScriptURL",
"spec_url": "https://w3c.github.io/webappsec-trusted-types/dist/spec/#dom-trustedtypepolicyfactory-isscripturl",
"support": {
"chrome": {
"version_added": "83"
Expand Down