Template fails in IE8...

2 views
Skip to first unread message

bkyr...@gmail.com

unread,
May 15, 2013, 2:20:30 PM5/15/13
to Pure-Unobtrusive...@googlegroups.com
Our project is using HTML5 tags (specifically the "article" tag). While IE8 doesn't support HTML 5, there is a way to make these tags work in IE8. However, when attempting to render some JSON via a pure.js template, I'm getting an error saying it can't find the "article" tag within the HTML content. In the developer tools console, it shows the HTML code as it appears in the page, with one subtle difference. All of the "article" tags are instead shown as ":article". This code works in all of the other major browser versions we've tested.

Anyone have any ideas why the tags would be misrepresented like that in IE8? Or experience with situations like this?

Any input would be greatly appreciated.

Thanks,

Ben.

Mic (BeeBole)

unread,
May 15, 2013, 4:53:53 PM5/15/13
to Pure-Unobtrusive...@googlegroups.com
Are you using another library(jQuery, dojo, prototype,...) along with pure.js ?

If you open the IE8 console on your page, and try document.querySelector("ARTICLE"), does it work?
If not, and you try to use classes: <article class="article">...
and try: document.querySelector(".article"does it work?
Reply all
Reply to author
Forward
0 new messages