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

Commit c198920

Browse files
committed
Merge pull request #51 from azakus/utf8
Force UTF-8 charset for imports to be spec compliant
2 parents 0461b94 + 60f0c91 commit c198920

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/HTMLImports.js

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ if (!useNative) {
125125
if (!doc.baseURI) {
126126
doc.baseURI = url;
127127
}
128+
// ensure UTF-8 charset
129+
var meta = doc.createElement('meta');
130+
meta.setAttribute('charset', 'utf-8');
131+
132+
doc.head.appendChild(meta);
128133
doc.head.appendChild(base);
129134
// install HTML last as it may trigger CustomElement upgrades
130135
// TODO(sjmiles): problem wrt to template boostrapping below,

0 commit comments

Comments
 (0)