Comments (9)
This link appears to be related:
https://arstechnica.com/civis/viewtopic.php?t=185317
from url-search-params-polyfill.
Changing
prototype.delete
to
prototype['delete']
And changing
this.delete (keys[i]);
to
this['delete'](keys[i]);
Removes the error but further testing is needed to see if it is an actual fix.
from url-search-params-polyfill.
I just tested on my IE 11.1480.14393.0, and everything worked well. The link you gave me is about IE and extending HTML elements.
Although delete
is a key word in javascript, but using delete
as an object's property is allowed.
Such as:
// They are allowed
var Obj = function() {}
Obj.delete = function() {}
Obj.prototype.delete = function() {}
from url-search-params-polyfill.
According to http://kangax.github.io/compat-table/es5/#test-Object/array_literal_extensions_Reserved_words_as_property_names IE11 ought to support reserved keywords as properties quite well. This is not the case for IE8, are you sure you weren't in the IE8 rendering mode @Soenhay?
from url-search-params-polyfill.
"Display Intranet Sites in Compatibiliy View" was checked but I am not currently able to reproduce the issue so checking or unchecking it does not appear to change anything.
Changing it to "this['delete']" was not really any use either since calling delete would not work.
I just realized that it is still not working.
from url-search-params-polyfill.
It is actually still not working. I was testing with the modified file earlier.
Also, I am loading the page that calls the library into an iFrame.
from url-search-params-polyfill.
In relation to this link: https://docs.microsoft.com/en-us/internet-explorer/ie11-deploy-guide/fix-compat-issues-with-doc-modes-and-enterprise-mode-site-list
The default document mode on my page in IE11 is 5. If I change it to 8,9 or 10 in the emulation tab then the "Expected identifier" error in index.js goes away and a new error in an unrelated script occurs. So unless I am mistaken it would appear that it is running in an older rendering mode as Herst suggested.
Closing again.
from url-search-params-polyfill.
IE5?! Were you missing a proper DOCTYPE
?
from url-search-params-polyfill.
It is a legacy website :) where I can not change the DOCTYPE. Our custom page is in an iFrame and I found that I do not really need the library on that particular site so I am no longer trying to load it there. I am using it for some older versions of Safari on iPads and iPhones and it is working great.
from url-search-params-polyfill.
Related Issues (20)
- TypeError: urlSearch[Symbol.iterator] is not a function` HOT 2
- Overwrite broken native support in Edge HOT 5
- undefined is not a function at new nativeURLSearchParams('s=%2B').get('s') HOT 16
- Please adapt semver HOT 1
- Doesn't work (for me) in ie11 HOT 12
- Using urlSearchParams in EDGE browser with url having special character HOT 4
- ie9 do not work HOT 6
- Constructor taking sequence-style input produces wrong output HOT 2
- Does not work with React Native v0.59 and up HOT 19
- Sporadic error on Edge HOT 2
- Babel build fails when url-search-params-polyfill is included HOT 3
- Hey, what's the reason for this HOT 4
- Can't handle hasOwnProperty in search params HOT 2
- improperly encodes values in toString() HOT 3
- toString method doesn't encode equal (=) right in Safari 10 HOT 1
- Support for size prop HOT 7
- bug with newly added size HOT 1
- TypeError: Cannot read property 'prototype' of null HOT 1
- Major issue with this library breaking on Safari HOT 4
- Does not work with IOS mobile device. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from url-search-params-polyfill.