-
Notifications
You must be signed in to change notification settings - Fork 26
Conversation
hey @shawnbot I appreciate the effort but I don't understand why you are trying to fix IE9 in a file called IE8. Why don't you use IE8 conditional comment in your HTML templates so nobody will get hurt by this stuff that should not run under any other browser or IE ? If there are specific IE9 things that you'd like to normalize and fix, why don't you try that after giving dom4 a chance ? That is the normalizer for everything modern, this is only IE8 Whta I mean is that I don't want to fix IE9 here because I might target IE9 but not IE8, which is most common scenario than targeting both. Does anything I say makes sense to you? |
Yeah, that makes sense. I would suggest giving 2 in my list above some consideration, though. As it is right now, ie8.js is incompatible with browserify, which makes it impossible to use with zuul. I'll wrap the contents of ie8.js in my own conditional when it's included in aight.js |
For what it's worth, though, I'm using both ie8 and dom4 in aight, and they work great. 👍 |
Why browserify has anything to do with it? Again, can you use HTML conditional comments in your HTML tempaltes so browserify won't ever possibly even touch IE8 ? this shoud not affect browserify at all: https://github.com/WebReflection/ie8#ie8-in-cdn right ? |
Take a look at my pull request in aight. I'm using zuul to run automated tests in IE8 and IE9, and zuul wants me to |
OK, let's say I really don't care much since I don't use ie8 with non ie8 browsers but I'd like to understand if I can merge this. You patched something and now you rolled back? Should I merge this and you are happy or ... should I wait ? |
Apologies but I cannot test anything in VM right now with my setup so I need to trust you or zuul did for me, thanks |
Yes, I think this is worth merging. All it does is comment out the In IE8 the "manual native blur" test fails, but I'm not sure if that's because I'm supposed to blur the input manually. When I do so, I get an untraceable script error: |
use global `Object` instead of the one that minifies better
Chrome does not behave standard for those tests but trust me, I don't abslutely care and I will not do anything for anything that is not IE8 here so don't waste your time testing other browsers ;-) |
Great, thanks! |
These tweaks ensure that
ie8.js
works in IE9:if (document.createEvent)
, since IE9 implements this needs shimming elsewhere.Object
locally, as this breaks in browserified builds (specifically, when running tests in zuul).commonTextDescriptor()
if the fallback descriptor doesn't exist, which fixes IE9 doesn't like the Comment and Text nodeValue shims #14.Preferably, shims would only be applied if the implementation was broken, but this would require a pretty significant refactor. IE9 gets a bunch of shims that it doesn't necessarily need, but because they work as expected we're good.