Skip to content

IE8 returning empty HTML #130

Closed
samos123 opened this Issue Jan 30, 2013 · 2 comments

4 participants

@samos123

Was able to reproduce with the following jsfiddle: http://jsfiddle.net/eTfGw/2/

As you can see in IE8 the variable html is empty whereas in FF or chrome it shows the correct html.

Edit: Funny if we change the .text() to .html() it also works in IE8, so maybe this is a bug in jquery? Or just plain incorrect usage.

@jeff-harnois

Looks like it's an issue not with hogan.js but with IE and jQuery and how it attempts to access the text:

http://www.bennadel.com/blog/1829-Script-Tags-jQuery-And-Html-Text-And-Contents-.htm

@sayrer sayrer closed this Aug 19, 2013
@pabelanger pabelanger pushed a commit to pabelanger/horizon that referenced this issue Oct 30, 2013
@samos123 samos123 Fix hogan js templates in IE8
Fixes: bug #1110226

Incorrect usage of the templating framework
as the html should be provided and not text? Weird
that it worked in other browsers though.

As part of the fix hogan has also been updated to
the latest official version 2.0.0 which may prevent
other bugs.

Upstream bug has been filed here:
twitter/hogan.js#130

Change-Id: Id5b6cef85dab1f9a497a525f9c065b410c52b38f
a6832ce
@bentedder

Thanks. Changing .text() to .html() worked for me as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.