-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 polyfill for ChildNode remove #21797
Conversation
💚 Build Succeeded |
💔 Build Failed |
x-pack flaky reporting test
jenkins, test this |
💔 Build Failed |
💔 Build Failed |
webpackShims/childnode-remove.js
Outdated
* under the License. | ||
*/ | ||
|
||
const childNodeRemove = require('childnode-remove'); |
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.
my bad, const childNodeRemove = require('../node_modules/childnode-remove');
webpackShims/childnode-remove.js
Outdated
|
||
const childNodeRemove = require('childnode-remove'); | ||
|
||
childNodeRemove.polyfill(); |
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.
I took a quick look at the lib, it doesn't check if remove is already defined. I'd do some light feature detection if possible, native code will most likely be quicker.
💔 Build Failed |
jenkins, test this |
💚 Build Succeeded |
webpackShims/childnode-remove.js
Outdated
|
||
/* eslint-disable */ | ||
|
||
// https://opensource.org/licenses/MIT |
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.
can you add the source for this?
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.
you mean put the MIT license inline?
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.
💔 Build Failed |
jenkins, test this |
💔 Build Failed |
💔 Build Failed |
jenkins, test this |
💔 Build Failed |
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.
I tested these changes in IE 11 on Windows and it resolved the Dashboard problems. I could Add NEw Visualization and I could Remove a visualization from a dashboard without errors. There are some warnings in the console but they didn't impact functionality.
I did not review the code changes.
webpackShims/childnode-remove.js
Outdated
* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2011-2015 Twitter, Inc |
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.
can we update this to Copyright (c) 2016-present, jszhou
with a link to the github repo?
Can we suffix the file with -polyfill to mostly follow the others? |
Can we add this to tests_entry_template.js too? LGTM after those 3, feel free to merge after green |
💔 Build Failed |
💔 Build Failed |
@jbudz CI keeps failing with
Do you know where this is coming from? |
ran |
💚 Build Succeeded |
* add polyfill for ChildNode remove * call polyfill function * add files as suggested by jbudz * remove checks around polyfill * just use polyfill that mozilla recommends * add MIT license to file * suffix file with polyfill, update copyright and link to repo * update notice.txt
* add polyfill for ChildNode remove * call polyfill function * add files as suggested by jbudz * remove checks around polyfill * just use polyfill that mozilla recommends * add MIT license to file * suffix file with polyfill, update copyright and link to repo * update notice.txt
* add polyfill for ChildNode remove * call polyfill function * add files as suggested by jbudz * remove checks around polyfill * just use polyfill that mozilla recommends * add MIT license to file * suffix file with polyfill, update copyright and link to repo * update notice.txt
* add polyfill for ChildNode remove * call polyfill function * add files as suggested by jbudz * remove checks around polyfill * just use polyfill that mozilla recommends * add MIT license to file * suffix file with polyfill, update copyright and link to repo * update notice.txt
fixes #21762
Adds polyfill for ChildNode.remove to support IE11