Closed Csini closed 7 years ago
with version 0.4.7 isn't the error comming...
Yup, because in 0.4.8 we try to polyfill HTMLFormElement to support
method="dialog"
. We don't do that in 0.4.7 so that will work for now.
Out of curiosity, why do you include
On 14 August 2017 at 06:37, Csini notifications@github.com wrote:
with version 0.4.7 isn't the error comming...
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoogleChrome/dialog-polyfill/issues/154#issuecomment-322191871, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHRkBNXaTfdgtqbUxW2Q1EW-07PQ9gXks5sYE19gaJpZM4O2WRp .
I just run a "normal" unit-test for angularjs with karma, for example:
describe('component: blaBlaHelper', function() {
var vm, scope, log;
beforeEach(module('at.blabla'));
beforeEach(inject(function ($rootScope, _$componentController_, _$log_) {
scope = $rootScope.$new();
vm = _$componentController_('blaBlaHelper', {$scope: scope}, {});
log = _$log_;
log.reset();
}));
afterEach(function () {
});
describe('dummy', function () {
it('vm.var to be Defined', function () {
expect(true).toEqual(true);
console.log('Test dummy() finished');
});
});
});
-> all the main files from my bower_components are concatenated and loaded (configured in karma-config) to be availible while the test ist running (dialog-polyfill is one of them) -> if I run the test with Karma with Chrome, there isn't any error -> if I run it with PhantomJS (for example to monitor it better on Jenkins) than comes the error that is described above (methodDescriptor is undefined)
is it a good idea to make such a change with a minor version? it destroyed my build for days...
your library was defined in my bower.json so:
"dependencies": {
"dialog-polyfill": "0.4.*",
...
}
Looks like this is a problem with PhantomJS. I'd guess that it's fixed if you upgrade it to 2.5.
I'll add a workaround anyway, but it's a stopgap.
Please try the version of dialog-polyfill.js
now checked in at HEAD and let me know if it fixes the problem.
Same problem under iOS 9: Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "method")
returns undefined
and kills the dialog functionality
@maggo can you try the version at HEAD?
@samthor yep error is gone, thanks
I've published 0.4.9 to work around this bug. It's still a bug, as these older browsers won't correctly return dialogMethodForm.method
as "dialog".
Ah, classic. Thanks for the quick fix!
Woow you are very quick! Thank you very much!! With Version 0.4.9 works my test again! I will check also if we can update our PhantomJS version.
in that line is: