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

Commit

Permalink
Merge pull request #51 from azakus/utf8
Browse files Browse the repository at this point in the history
Force UTF-8 charset for imports to be spec compliant
  • Loading branch information
dfreedm committed Feb 12, 2014
2 parents 0461b94 + 60f0c91 commit c198920
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/HTMLImports.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ if (!useNative) {
if (!doc.baseURI) {
doc.baseURI = url;
}
// ensure UTF-8 charset
var meta = doc.createElement('meta');
meta.setAttribute('charset', 'utf-8');

doc.head.appendChild(meta);
doc.head.appendChild(base);
// install HTML last as it may trigger CustomElement upgrades
// TODO(sjmiles): problem wrt to template boostrapping below,
Expand Down

0 comments on commit c198920

Please sign in to comment.