Replies: 1 comment
-
Hey @danwood, thanks for the issue! This is definitely a bit of a blind spot for the library. It is possible to do this, but perhaps not super obvious. The trick is to use the Node.html(
.head(
.init(.raw("<!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge'><![endif]-->"))
)
) It's not the prettiest thing, but it'll work. I think we could improve the docs for our escape hatches and perhaps even provide a better escape hatch API here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to construct an HTML document with an IE-specific directive in the
<head>
tag. It looks like a comment:Problem is, I can't put this comment in the
<head>
tag. I get this compile message:It would be great to be able to put some kinds of nodes like
.comment
, also probably.raw
nodes, at any place in a tree.Beta Was this translation helpful? Give feedback.
All reactions