blakeembrey / dombars

*DEPRECATED* DOM-based templating library with data-binding and built on Handlebars
MIT License
51 stars 5 forks source link

IE8 compat #34

Closed th3fallen closed 10 years ago

th3fallen commented 10 years ago

As much as it pains me to to do this bug report but is there any possible way to make this work in IE8?

blakeembrey commented 10 years ago

@th3fallen Yeah, that sounds like fun. I'll look at it tonight, it all uses fairly basic DOM APIs so I can't imagine being difficult to get working.

th3fallen commented 10 years ago

<3 this is the only error i see http://take.ms/bKMBv

blakeembrey commented 10 years ago

@th3fallen Could you try the latest master? I just pushed some updated but can't run my test suite since chai doesn't work in IE8.

th3fallen commented 10 years ago

@blakeembrey firstly thanks for the amazingly fast update, but you where close here's the new issue.

https://monosnap.com/image/D1qdSwqW91XRXJXKabG5rJzFOy5Igc

blakeembrey commented 10 years ago

@th3fallen Looks like that code is out of my control and part of htmlparser2. I'll look at opening a PR against it tonight. For now you should be able to find a simple Array.prototype.lastIndexOf polyfill.

th3fallen commented 10 years ago

i'll check on that thanks

th3fallen commented 10 years ago

sorted that out, now i've got this beauty https://monosnap.com/image/uZbXnQlWdl83nlA4n67okwFqbMezQ0

blakeembrey commented 10 years ago

@th3fallen Ok, I'll get some VMs set up tonight to work on that.

th3fallen commented 10 years ago

Sounds wonderful also for anyone interested here's the polyfill i used for the lastIndexOf

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf

blakeembrey commented 10 years ago

@th3fallen I think it's finally complete in IE (aside from data binding a type attribute of an input - but that's another story). Let me know how it goes for you.

th3fallen commented 10 years ago

Thanks I'll give it a shot on Monday when I'm back in the office.Thanks a ton for your quick support On Mar 21, 2014 10:31 PM, "Blake Embrey" notifications@github.com wrote:

@th3fallen https://github.com/th3fallen I think it's finally complete in IE (aside from data binding a type attribute of an input - but that's another story). Let me know how it goes for you.

Reply to this email directly or view it on GitHubhttps://github.com/blakeembrey/dombars/issues/34#issuecomment-38340754 .

th3fallen commented 10 years ago

nope now you get this https://monosnap.com/image/CqO64kgBqcrKaav5uvTdIFEjHN1hvP

blakeembrey commented 10 years ago

@th3fallen Hmm, really? It's definitely working for me in IE8. Do you have any more information? What's the template, etc.?

th3fallen commented 10 years ago

here's the url where the issue is occurring hopefully that will help. http://dev.insp.com/phase2/insp-quiz/test-quiz/

th3fallen commented 10 years ago

any update or is it on my end?

blakeembrey commented 10 years ago

I'm getting a redirect when I hit the url?

th3fallen commented 10 years ago

ah sorry we had to change the permalink heres the updated one http://dev.insp.com/phase2/inspquiz/test/

blakeembrey commented 10 years ago

Ok, just pushed a new commit. Should resolve the issue, but if there is more please let me know.

th3fallen commented 10 years ago

@blakeembrey that one did it, Thanks a ton!

th3fallen commented 10 years ago

@blakeembrey well kind of now i get three answers when there are only two (only in ie 8) im not positive thats dombars fault but it may be as it doesnt occur anywhere else?

blakeembrey commented 10 years ago

@th3fallen Do you think you could make a reduced test case for it? Just need something I can debug appropriately and ensure it's not related to anything else on the page.

th3fallen commented 10 years ago

@blakeembrey heres a super slimmed one http://dev.insp.com/

blakeembrey commented 10 years ago

@th3fallen I was hoping for something off the site with minimal dependency that can replicate the problem. The issue may be related to DOMBars or CSS3PIE, so I was hoping to work out the code your using. Doesn't have to look the same, you can just paste an DOMBars loop into JSFiddle and if it causes the bug in IE8 send that. Thanks!

th3fallen commented 10 years ago

@blakeembrey it was an issue on my end i've got it sorted out thanks a million!

blakeembrey commented 10 years ago

@th3fallen No problem, I'm glad it worked out! Do you mind if I ask what the issue was?

th3fallen commented 10 years ago

@blakeembrey for some reason when i was adding answers to the model in ie8 it was adding an extra empty one. which blew things up when i needed to do an each on them. so i just popped the empty off and did a filter to get rid of any other extras in ie

blakeembrey commented 10 years ago

Hmm, interesting. Well, glad it's working now.

th3fallen commented 10 years ago

You and me both i was about to pull my hair out. Thanks again for the amazing support.