4

IE11 weird behaviour!!

So I'm building a website for management purpose. I'm asked to implement confirm pop up box.
This pop up box uses one div with dynamic content which is created using javascript and not hardcoded in html file.
Here comes the twist. I used append() function to append child elements inside that div. Everything works fine in chrome and Firefox. Pop up shows upon clicking button. But in case of IE 11, on clicking button, It asks user to download fucking json file, instead of showing pop up !!
I'm like WTF is going on??? How the fuck this json file is generated by my code??
Turned out, this happened because of append() function. That doesn't support in IE11. Fixed it, by using appendChild() method.

Don't ask me what kind of data was in that json file. I was too scared to open it!!
Things like this are scary and weird for a fresher like me. :(

Comments
  • 3
    And this is why you just have a message on your site saying "please use chrome or Firefox"
  • 2
    @Stocken Haha! But Manager told me to provide IE11 support. Can't mess up with first assignment.
    I asked them why IE11? They said security. Being clueless, I just replied Ok.
  • 1
    While(IE11.behavior === 90s) {
    alert("I know right");
    }
  • 0
    @scorpionk it basically does not support most of the most used functionality, not even some important css properties.
    Also security is a big flaw.
    But if you use JavaScript, just babel that sh*t 🤙
Add Comment