-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as for childNodes
.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
for all 5.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
for all 5.
There was a problem hiding this comment.
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" | ||
}, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Should be updated :) - will add the methods once @Elchi3 has commented. |
There was a problem hiding this 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.
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.
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.
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.