-
Notifications
You must be signed in to change notification settings - Fork 353
trying to set read-only property #140
Comments
What version of Safari are you seeing this in? I was trying Safari 9 via BrowserStack and was not able to reproduce the problem. If you're able to come up with an alternate test I can replace what's there: if (!('head' in document))
document.head = document.getElementsByTagName('head')[0]; You could try |
Mobile safari on iOS9, that is written in issue. You can't change it's version in iOS |
While this is really strange, because calling this from console does not triggers an error. But in real app it fails. |
I'm having no luck reproducing on iOS9 / Safari 9.0.1. Can you please provide a link to a page demonstrating the problem? Or can you attempt to minimize the repro? For example, the following runs without error on iOS9 (via BrowserStack): <script>
if (!('head' in document)) {
document.write('adding head');
document.head = document.getElementsByTagName('head')[0];
}
document.write('ok: ' + navigator.userAgent);
</script> Note that "adding head" isn't written, so the |
Ping - any luck producing a stand-alone repro? |
polyfill/html.js
Line 17 in 5f8bc4c
this breaks mobile safari in ios9 with
trying to set read-only property
The text was updated successfully, but these errors were encountered: