mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
Merge pull request #77 from agrieve/patch-1
Make HTMLImports polyfill more robust when assigning baseURI property
This commit is contained in:
@@ -129,7 +129,8 @@ function makeDocument(resource, url) {
|
||||
base.setAttribute('href', url);
|
||||
// add baseURI support to browsers (IE) that lack it.
|
||||
if (!doc.baseURI) {
|
||||
doc.baseURI = url;
|
||||
// Use defineProperty since Safari throws an exception when using assignment.
|
||||
Object.defineProperty(doc, 'baseURI', {value:url});
|
||||
}
|
||||
// ensure UTF-8 charset
|
||||
var meta = doc.createElement('meta');
|
||||
|
||||
Reference in New Issue
Block a user