Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…9142 that should allow templates in the main document to resolve paths relative to it.
  • Loading branch information
sorvell committed Nov 11, 2013
1 parent 54feb3d commit b9fd923
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@
})();
}

// TODO(sorvell): workaround for bug:
// https://code.google.com/p/chromium/issues/detail?id=229142
// remove when this bug is addressed
// give main document templates a base that allows them to fetch eagerly
// resolved paths relative to the main document
var template = document.createElement('template');
var base = document.createElement('base');
base.href = document.baseURI;
template.content.ownerDocument.appendChild(base);


// utility

function createDOM(inTagOrNode, inHTML, inAttrs) {
Expand Down

0 comments on commit b9fd923

Please sign in to comment.