-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workaround HTML Imports bug that blocks imported link rel="stylesheet"
s in IE/Edge,
#59
Workaround HTML Imports bug that blocks imported link rel="stylesheet"
s in IE/Edge,
#59
Conversation
…t"`s in IE/Edge, Remove `type="import-disable"` attribute of stamped links, clean all templates recursively, https://github.com/webcomponents/webcomponentsjs/issues/1008 https://github.com/Starcounter/uniform.css/issues/63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
imported-template.html
Outdated
@@ -54,6 +64,9 @@ | |||
singleTemplate = templates[nodeNo]; | |||
//d debugger // or innerHTML in this case | |||
singleFragment = document.importNode(singleTemplate.content, true); | |||
if(isIE){ | |||
stripDisabledType(singleFragment); | |||
} | |||
// convert dynamic NodeList to regullar array | |||
nodes = Array.prototype.slice.call(singleFragment.childNodes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
regullar -> regular.
Isn't Array.from
cleaner?
@@ -0,0 +1,3 @@ | |||
#green{ | |||
color: rgb(0, 128, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use a different value (than the other stylesheet) for easier debugging in case we needed that.
instead of `Array.prototype.slice.call`, as suggested at #59 (comment)
as suggested at #59 (comment)
54932e2
to
306cbe1
Compare
to emphasize the need for Juicy/imported-template#59
Remove
type="import-disable"
attribute of stamped links, clean all templates recursively,https://github.com/webcomponents/webcomponentsjs/issues/1008
https://github.com/Starcounter/uniform.css/issues/63