tag:blogger.com,1999:blog-34454975.post4644233385624483753..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: Web Development Has Never Been So Beautiful !Andrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-34454975.post-9687543077351116322013-10-10T22:57:25.346+02:002013-10-10T22:57:25.346+02:00Andrea I got your opinion. ie8 is an interesting p...Andrea I got your opinion. ie8 is an interesting project, just created an issue there. <br /><br />This is true that using polyfills could potentially simplify libraries like my own. It's jus so difficult to find something with a good quality.Anonymoushttps://www.blogger.com/profile/01351486086597805994noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-90145253865171847682013-10-10T01:24:22.031+02:002013-10-10T01:24:22.031+02:00ie8 fixes that too ... and if you use eddy.js, you...ie8 fixes that too ... and if you use eddy.js, you'll forget other problems too since everything works as expected everywhere.<br /><br />attachEvent cannot really give you anything else in there, I have normalized that monster and you should just stop detecting such event or keep doing that, if necessary to understand some special event name or case, but use addEventListener instead ;-)Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-88424149572138766922013-10-10T01:22:43.422+02:002013-10-10T01:22:43.422+02:00Maksim ... ie8 polyfill is the only one done corre...Maksim ... ie8 polyfill is the only one done correctly as much as possible, of course, but it requires very few code style changes in order to work as you expect.<br /><br />You might want to know that ie8 test suite fails in Safari and Chrome because **these browsers** are not W3C compatible as Firefox is, as example.Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-25258024133150005782013-10-09T23:59:37.083+02:002013-10-09T23:59:37.083+02:00The key phrase is "if done correctly". T...The key phrase is "if done correctly". This is stupid to check old IE via addEventListener (better to use feature checks). But unfortunately there are a lot of bad written code and sometimes you have to use it... Anonymoushttps://www.blogger.com/profile/01351486086597805994noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-24911162395239138992013-10-08T18:04:08.215+02:002013-10-08T18:04:08.215+02:00no Maksim, it's not a bad idea. It's like ...no Maksim, it's not a bad idea. It's like patching Array extras ... if done correctly, there's nothing wrong while wrong would be to do a pointless feature detection as `if(document.addEventListener)` which gives you nothing.<br /><br />Now you can forget that there are browsers without addEventListener, which is the point I've made in here.<br /><br />RegardsAndrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-88406405239581899972013-10-08T10:45:53.750+02:002013-10-08T10:45:53.750+02:00Nice one Andrea .. Always Love to read your articl...Nice one Andrea .. Always Love to read your articles Anonymoushttps://www.blogger.com/profile/14164381765923864942noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-72060105773964119002013-10-05T10:13:51.940+02:002013-10-05T10:13:51.940+02:00Yeah, we could fix browsers via patching prototype...Yeah, we could fix browsers via patching prototypes but... it's a bad idea. Third party scripts could rely on feature checks that will be broken (for instance they could determine IE by testing existence of addEventListener etc.) In general it's always better to use wrappers for native objects.<br /><br />Frankly I still think that DOM apis are bad designed and confusing. Many useful features are missed. That's why I try to address all issues (instead of just complaining) in my own project <a href="https://github.com/chemerisuk/better-dom" rel="nofollow">better-dom</a>.Anonymoushttps://www.blogger.com/profile/01351486086597805994noreply@blogger.com