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 compat data for Node (just properties to start) #1179

Merged
merged 3 commits into from
Mar 6, 2018
Merged

Conversation

maboa
Copy link
Contributor

@maboa maboa commented Feb 23, 2018

https://developer.mozilla.org/en-US/docs/Web/API/Node

Note - starting off with just the properties, will add methods once this has been approved.

Also note there are a few properties with no table and so I have represented this as all nulls, can't remember if this is the correct procedure.

@Elchi3 Elchi3 added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Feb 23, 2018
api/Node.json Outdated
"notes": "WebKit and old versions of Blink incorrectly do not make <code>Node</code> inherit from <code>EventTarget</code>."
},
"chrome_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

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

Chrome Android should match Webview Android.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

"version_added": null
},
"chrome_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

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

All Chrome versions should be true. You can verify support of all of Node's members in the IDL file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

api/Node.json Outdated
"version_added": "1"
},
"chrome_android": {
"version_added": "1"
Copy link
Contributor

Choose a reason for hiding this comment

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

There was no version 1 for Chrome Android. Please change to true. Change Webview Android to true as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

api/Node.json Outdated
"version_added": "1"
},
"chrome_android": {
"version_added": "1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as for childNodes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

api/Node.json Outdated
},
"chrome_android": {
"version_added": "2.3",
"notes": "probably earlier"
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this to true and remove the notes. Android Chrome and Android Webview follow Chrome version numbers, not Android.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 Assuming webview_android is true too.

api/Node.json Outdated
"version_added": true
},
"chrome_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

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

true for all 5.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

api/Node.json Outdated
"version_added": true
},
"chrome_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

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

This is actually false for all 5.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

"version_added": null
},
"chrome_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

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

true for all 5.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

api/Node.json Outdated
"chrome": {
"version_added": false,
"alternative_name": "getRootNode"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

This applies to all 5.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

api/Node.json Outdated
"version_added": "1"
},
"chrome_android": {
"version_added": "4.4"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be true for Webview, Chrome Android, and Opera.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@maboa
Copy link
Contributor Author

maboa commented Feb 26, 2018

Should be updated :) - will add the methods once @Elchi3 has commented.

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

Thanks Mark! I'll merge this. We can use a new pull request to add the methods.

@Elchi3 Elchi3 merged commit 7b9e9f0 into mdn:master Mar 6, 2018
dontcallmedom pushed a commit to dontcallmedom/browser-compat-data that referenced this pull request Mar 17, 2018
mlbrgl pushed a commit to mlbrgl/browser-compat-data that referenced this pull request Mar 29, 2018
foolip added a commit to foolip/browser-compat-data that referenced this pull request Nov 27, 2020
This is a Gecko "ChromeOnly" attribute not exposed to the web:
https://github.com/mozilla/gecko-dev/blob/8a4aa0c699d9ec281d1f576c9be1c6c1f289e4e7/dom/webidl/Node.webidl#L107

The string "nodePrincipal" does not appear in Chromium or WebKit source,
apart from one instane in a gecko_dom.js as part of a test suite.

The "API was moved" notes for Chromium are from
mdn#1179 and must be a
mistake, as the string "nodePrincipal" has never appeared in a commit
message in the entire history of Chromium.

https://developer.mozilla.org/en-US/docs/Web/API/Node/nodePrincipal
should be redirected to Node.
Elchi3 pushed a commit that referenced this pull request Nov 27, 2020
This is a Gecko "ChromeOnly" attribute not exposed to the web:
https://github.com/mozilla/gecko-dev/blob/8a4aa0c699d9ec281d1f576c9be1c6c1f289e4e7/dom/webidl/Node.webidl#L107

The string "nodePrincipal" does not appear in Chromium or WebKit source,
apart from one instane in a gecko_dom.js as part of a test suite.

The "API was moved" notes for Chromium are from
#1179 and must be a
mistake, as the string "nodePrincipal" has never appeared in a commit
message in the entire history of Chromium.

https://developer.mozilla.org/en-US/docs/Web/API/Node/nodePrincipal
should be redirected to Node.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants