-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE9-only: context not set correctly in event triggered in nested template helpers #458
Comments
@rdickert, thanks for finding this bug -- I especially appreciate the reproduction you sent (though I haven't confirmed it yet.) We will set to work on fixing this. |
@gschmidt: Glad to help. Keep up the great work on Meteor. I really enjoy using it. |
This one is a doozy! Confirmed on the most recent devel. After a bunch of investigation, this appears to be a bug with text nodes in IE9. Text nodes can lose their expando attributes in some circumstances. The solution is probably to use the same workaround as IE8: add comments to the DOM instead of putting expando attributes on text nodes. Some facts FTR:
|
Presumably your observation about whitespace is because without the Does changing canSetTextProps to true unconditionally in liverange.js fix On Thu, Dec 6, 2012 at 1:54 AM, Nick Martin [email protected]:
|
IE9 has a concept of document mode, where it can interpret a document in On Thu, Dec 6, 2012 at 8:40 AM, David Glasser [email protected] wrote:
|
https://gist.github.com/4230612
Pretty sure the answer is to detect IE9 somehow in canSetTextProps and return false instead of true. Still need to test IE10. |
IE10 exhibits the same behavior, though it is a bit more random. Clicking the button rapidly right at page load seems to ward off the issue, and the timing is less precise. |
@rdickert Should be all fixed now. Thanks for the report! |
Awesome. Thanks! |
…angelog-2.0.0 Update cz-conventional-changelog to version 2.0.0 🚀
Cross-browser tests of a prototype I'm working on showed me that one of my buttons doesn't work correctly in ie9 (running on win7). Oddly enough, ie7 and ie8 mode (set within ie9 dev tools) work. The error occurred in an event callback on a button inside an
#each
helper which was itself inside a#with
helper. I discovered that the contextthis
was not the same in the event handler in ie9 as it was for the other browsers (tested macos chrome + safari, win chrome & ff) .I put together a gist that demonstrates the bug. On every browser I've tried except ie9, clicking the button logs "context: We are in the '#each' context" to the console, but in ie9, I get "context: undefined". If I switch ie9 to ie8 mode, it works. In my other code, the context actually stays as defined in the
#with
part of the template, so it's not identical to this behavior, but hopefully this is indicating the same problem.The text was updated successfully, but these errors were encountered: