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

Commit

Permalink
Force UTF-8 charset for imports to be spec compliant
Browse files Browse the repository at this point in the history
Fixes #50
  • Loading branch information
dfreedm committed Feb 12, 2014
1 parent 0461b94 commit 60f0c91
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 60f0c91

Please sign in to comment.