Fork me on GitHub

how does one achieve this with hoplon?

<!--[if lte IE 8]>
  <link rel="stylesheet" href="">
<!--[if gt IE 8]><!-->
  <link rel="stylesheet" href="">


by the way this <[email protected]@<>#@$[]> syntax is ridiculous


@xifi: there is ($comment "...") but that won't help in this case. however if u look into its source code, u might see how it was done and u can create conditionals yourself too.


but u can also provide dom element content as string with the :html attribute, but in this case that might not help directly either


@onetom: Hey simple_smile I hoped there's a simpler way to do this in hoplon since we are building the page dynamically anyway. Isn't there something like

(if (and (= browser 'ie) (< browser-version 8))
  (link rel ...)


yeah, there should be something like that. i vaguely remember looking into this but at the end i was like "fuck ie8" and moved on


i dont think there is anything built in like that in hoplon at the moment, but even if there would be, it would just be a thin wrapper around a some browser api


i would recommend digging around in mdn. like if i google for "mdn browser version" the 1st hit is:


though the 1st line in it says: > Warning: The content of this article may be out of date. This article was written in 2003 and is not on par with current standards. so keep diggin' 😉


I'll ditch IE8 for now, was mostly curious. Thanks simple_smile


@onetom: i think i know why that loop-tpl bug happens


with the events


@xifi: did you see this, in the hoplon.core namespace: (def ^:private is-ie8 (not (aget js/window "Node")))


@micha: Hi. I actually did but didn't know what to think of it. First of all the name says is-ie8 not is-ie-lt-8 or something similar, secondly I don't understand the "Node" lookup logic. Care to elaborate? simple_smile