Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why I hate IE

Why I hate IE

Scheduled Pinned Locked Moved The Lounge
jsonhelphtmlsysadmindebugging
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    n podbielski
    wrote on last edited by
    #1

    I am web app developer and I mainly test my apps (during developing) on FF, but sometimes (like with webpages) i have to test app on IE. Today I encounter another itchy bug-feature in IE, and this is yet ANOTHER reason WHY I HATE this browser... I get some html code from server as JSON, parse returned string to object and inject it's properties to different part of page. In FF this work just fine... but no in best browser in the world. It was something like this: Me: here have some string:

    '{"prop1":"<a id=\"link1\" href=\"some_url\">blablaAnchor</a>\n<a id=\"another_link\" href=\"some_url\">blablaAnchor</a>",
    "another_prop":"some_value\r\n another_part_of_string"}'

    IE: hmmm... it's gonna be somthing like this:

    string='{"prop1":"<a id="link1" href="some_url">blablaAnchor</a>\n<a id="another_link" href="some_url">blablaAnchor</a>",
    "another_prop":"some_value\r\n another_part_of_string"}'

    Me:Heh... probably. IE:Parse this as JSON string? Me:Yes. IE:But this is wrong string! Me:What? Why? It's work just fine in FF! IE:For me this looks wrong. Error: '} was expected.' Do you want debug? Me:Yes... Maybe I gonna find something... IE:Ok. Me:Hmmm it's look fine to me too! What's cold be wrong with this?! IE:You really don't know? Me:No! Show me what you doing. IE:OK. Parsing string... Ok we have '{' on beginning of this string... ...oh there is quoted property name: prop1 ...and ":" this means there gonna be value... ...and we have " as begin of this value it's just fine at this point ...and we have another " as and of this value. This means that value of this property is "<a id="... Me: Wait! What?! It's not ending " of this value it's simply " inside this property you idiot! Damn! Maybe if quote every html attribute with '\\\' it's should work fine. Last will escape " and 2 first will mean that escaped " is escaped again inside string returned from server... After while and some code changes: Me:Try this IE:

    '{"prop1":"<a id=\\\"link1\\\" href=\\\"some_url\\\">blablaAnchor</a>\n<a id=\\\"another_link\\\" href=\"some_url\">blablaAnchor</a>",
    "another_prop":"some_value\r\n another_part_of_string"}'

    IE:Oh right... IE:It is:

    '{"prop1":"<a id=\"link1\" href=\"some_url\">blablaAnchor</a>\n<a id=\"another_link\" href=\"some_url\">blablaAnchor</a>",
    "another_prop":"some_value\r\n another_part_of_string"}'

    IE:Hey m

    N R S 3 Replies Last reply
    0
    • N n podbielski

      I am web app developer and I mainly test my apps (during developing) on FF, but sometimes (like with webpages) i have to test app on IE. Today I encounter another itchy bug-feature in IE, and this is yet ANOTHER reason WHY I HATE this browser... I get some html code from server as JSON, parse returned string to object and inject it's properties to different part of page. In FF this work just fine... but no in best browser in the world. It was something like this: Me: here have some string:

      '{"prop1":"<a id=\"link1\" href=\"some_url\">blablaAnchor</a>\n<a id=\"another_link\" href=\"some_url\">blablaAnchor</a>",
      "another_prop":"some_value\r\n another_part_of_string"}'

      IE: hmmm... it's gonna be somthing like this:

      string='{"prop1":"<a id="link1" href="some_url">blablaAnchor</a>\n<a id="another_link" href="some_url">blablaAnchor</a>",
      "another_prop":"some_value\r\n another_part_of_string"}'

      Me:Heh... probably. IE:Parse this as JSON string? Me:Yes. IE:But this is wrong string! Me:What? Why? It's work just fine in FF! IE:For me this looks wrong. Error: '} was expected.' Do you want debug? Me:Yes... Maybe I gonna find something... IE:Ok. Me:Hmmm it's look fine to me too! What's cold be wrong with this?! IE:You really don't know? Me:No! Show me what you doing. IE:OK. Parsing string... Ok we have '{' on beginning of this string... ...oh there is quoted property name: prop1 ...and ":" this means there gonna be value... ...and we have " as begin of this value it's just fine at this point ...and we have another " as and of this value. This means that value of this property is "<a id="... Me: Wait! What?! It's not ending " of this value it's simply " inside this property you idiot! Damn! Maybe if quote every html attribute with '\\\' it's should work fine. Last will escape " and 2 first will mean that escaped " is escaped again inside string returned from server... After while and some code changes: Me:Try this IE:

      '{"prop1":"<a id=\\\"link1\\\" href=\\\"some_url\\\">blablaAnchor</a>\n<a id=\\\"another_link\\\" href=\"some_url\">blablaAnchor</a>",
      "another_prop":"some_value\r\n another_part_of_string"}'

      IE:Oh right... IE:It is:

      '{"prop1":"<a id=\"link1\" href=\"some_url\">blablaAnchor</a>\n<a id=\"another_link\" href=\"some_url\">blablaAnchor</a>",
      "another_prop":"some_value\r\n another_part_of_string"}'

      IE:Hey m

      N Offline
      N Offline
      NormDroid
      wrote on last edited by
      #2

      Holy sh!t, what are you smoking over there?

      Software Kinetics - Moving Software

      R H N 3 Replies Last reply
      0
      • N n podbielski

        I am web app developer and I mainly test my apps (during developing) on FF, but sometimes (like with webpages) i have to test app on IE. Today I encounter another itchy bug-feature in IE, and this is yet ANOTHER reason WHY I HATE this browser... I get some html code from server as JSON, parse returned string to object and inject it's properties to different part of page. In FF this work just fine... but no in best browser in the world. It was something like this: Me: here have some string:

        '{"prop1":"<a id=\"link1\" href=\"some_url\">blablaAnchor</a>\n<a id=\"another_link\" href=\"some_url\">blablaAnchor</a>",
        "another_prop":"some_value\r\n another_part_of_string"}'

        IE: hmmm... it's gonna be somthing like this:

        string='{"prop1":"<a id="link1" href="some_url">blablaAnchor</a>\n<a id="another_link" href="some_url">blablaAnchor</a>",
        "another_prop":"some_value\r\n another_part_of_string"}'

        Me:Heh... probably. IE:Parse this as JSON string? Me:Yes. IE:But this is wrong string! Me:What? Why? It's work just fine in FF! IE:For me this looks wrong. Error: '} was expected.' Do you want debug? Me:Yes... Maybe I gonna find something... IE:Ok. Me:Hmmm it's look fine to me too! What's cold be wrong with this?! IE:You really don't know? Me:No! Show me what you doing. IE:OK. Parsing string... Ok we have '{' on beginning of this string... ...oh there is quoted property name: prop1 ...and ":" this means there gonna be value... ...and we have " as begin of this value it's just fine at this point ...and we have another " as and of this value. This means that value of this property is "<a id="... Me: Wait! What?! It's not ending " of this value it's simply " inside this property you idiot! Damn! Maybe if quote every html attribute with '\\\' it's should work fine. Last will escape " and 2 first will mean that escaped " is escaped again inside string returned from server... After while and some code changes: Me:Try this IE:

        '{"prop1":"<a id=\\\"link1\\\" href=\\\"some_url\\\">blablaAnchor</a>\n<a id=\\\"another_link\\\" href=\"some_url\">blablaAnchor</a>",
        "another_prop":"some_value\r\n another_part_of_string"}'

        IE:Oh right... IE:It is:

        '{"prop1":"<a id=\"link1\" href=\"some_url\">blablaAnchor</a>\n<a id=\"another_link\" href=\"some_url\">blablaAnchor</a>",
        "another_prop":"some_value\r\n another_part_of_string"}'

        IE:Hey m

        R Offline
        R Offline
        Rage
        wrote on last edited by
        #3

        At least, you can still talk with IE. It's been ages since it did not answer me anymore.

        N 1 Reply Last reply
        0
        • N NormDroid

          Holy sh!t, what are you smoking over there?

          Software Kinetics - Moving Software

          R Offline
          R Offline
          Rage
          wrote on last edited by
          #4

          You mentioned it: holy sh*t.

          1 Reply Last reply
          0
          • N NormDroid

            Holy sh!t, what are you smoking over there?

            Software Kinetics - Moving Software

            H Offline
            H Offline
            Henry Minute
            wrote on last edited by
            #5

            AcIEd.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            N 1 Reply Last reply
            0
            • H Henry Minute

              AcIEd.

              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

              N Offline
              N Offline
              NormDroid
              wrote on last edited by
              #6

              He's probably listening to AcIEd house as we speak.

              Software Kinetics - Moving Software

              1 Reply Last reply
              0
              • R Rage

                At least, you can still talk with IE. It's been ages since it did not answer me anymore.

                N Offline
                N Offline
                NormDroid
                wrote on last edited by
                #7

                It's so funny why we don't talk anymore.

                Software Kinetics - Moving Software

                1 Reply Last reply
                0
                • N NormDroid

                  Holy sh!t, what are you smoking over there?

                  Software Kinetics - Moving Software

                  N Offline
                  N Offline
                  n podbielski
                  wrote on last edited by
                  #8

                  Oh give me a break. I sit alone, in dark room, tiring my eyeballs while staring at screen. I have to talk to SOMETHING. :(

                  In soviet Russia code debugs You!

                  1 Reply Last reply
                  0
                  • N n podbielski

                    I am web app developer and I mainly test my apps (during developing) on FF, but sometimes (like with webpages) i have to test app on IE. Today I encounter another itchy bug-feature in IE, and this is yet ANOTHER reason WHY I HATE this browser... I get some html code from server as JSON, parse returned string to object and inject it's properties to different part of page. In FF this work just fine... but no in best browser in the world. It was something like this: Me: here have some string:

                    '{"prop1":"<a id=\"link1\" href=\"some_url\">blablaAnchor</a>\n<a id=\"another_link\" href=\"some_url\">blablaAnchor</a>",
                    "another_prop":"some_value\r\n another_part_of_string"}'

                    IE: hmmm... it's gonna be somthing like this:

                    string='{"prop1":"<a id="link1" href="some_url">blablaAnchor</a>\n<a id="another_link" href="some_url">blablaAnchor</a>",
                    "another_prop":"some_value\r\n another_part_of_string"}'

                    Me:Heh... probably. IE:Parse this as JSON string? Me:Yes. IE:But this is wrong string! Me:What? Why? It's work just fine in FF! IE:For me this looks wrong. Error: '} was expected.' Do you want debug? Me:Yes... Maybe I gonna find something... IE:Ok. Me:Hmmm it's look fine to me too! What's cold be wrong with this?! IE:You really don't know? Me:No! Show me what you doing. IE:OK. Parsing string... Ok we have '{' on beginning of this string... ...oh there is quoted property name: prop1 ...and ":" this means there gonna be value... ...and we have " as begin of this value it's just fine at this point ...and we have another " as and of this value. This means that value of this property is "<a id="... Me: Wait! What?! It's not ending " of this value it's simply " inside this property you idiot! Damn! Maybe if quote every html attribute with '\\\' it's should work fine. Last will escape " and 2 first will mean that escaped " is escaped again inside string returned from server... After while and some code changes: Me:Try this IE:

                    '{"prop1":"<a id=\\\"link1\\\" href=\\\"some_url\\\">blablaAnchor</a>\n<a id=\\\"another_link\\\" href=\"some_url\">blablaAnchor</a>",
                    "another_prop":"some_value\r\n another_part_of_string"}'

                    IE:Oh right... IE:It is:

                    '{"prop1":"<a id=\"link1\" href=\"some_url\">blablaAnchor</a>\n<a id=\"another_link\" href=\"some_url\">blablaAnchor</a>",
                    "another_prop":"some_value\r\n another_part_of_string"}'

                    IE:Hey m

                    S Offline
                    S Offline
                    Stefan_Lang
                    wrote on last edited by
                    #9

                    Haven't you checked this chart before? Found it on this site. ;)

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups