• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

My day...

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    My day...

    Linky

    This about sums it up.

    I can't do this css layout bollx. Give me a <table> any day. How many hours did I waste because I forgot IE doesn't like a self closing <script/> tag? Add onto that the hours spent finding the hardcoded positioning in a bit of javascript...

    Thankfully I have a fridge full of beer.

    #2
    Tsk, tsk you heretic.

    Enjoy the beer!
    +50 Xeno Geek Points
    Come back Toolpusher, scotspine, Voodooflux. Pogle
    As for the rest of you - DILLIGAF

    Purveyor of fine quality smut since 2005

    CUK Olympic University Challenge Champions 2010/2012

    Comment


      #3
      Originally posted by k2p2 View Post
      How many hours did I waste because I forgot IE doesn't like a self closing <script/> tag?
      You need to remember that the XML empty element shorthand syntax <foo /> can only be used in XHTML (served as text/html) for elements that are defined by the (X)HTML DTD as having an empty content model.

      As IE's parser doesn't know anything about XHTML (it's HTML-only) it sees the trailing slash within the start tag as the declaration of an attribute; as "/" isn't a valid name for an attribute, it then discards it as an ignorable syntax error, sees the ">" as the end of the start tag, and treats subsequent content as the contents of the <script> tag.

      The only reason it doesn't similarly fail for constructs like <br /> and <img /> is that they are defined in the DTD as having an empty content model, and therefore it doesn't expect to find an end tag for them.

      In fact, the <script /> construct should also fail on other browsers when the same content is served to them with Content-Type "text/html" instead of "application/xhtml+xml", for the same reasons.

      Comment


        #4
        Originally posted by NickFitz View Post
        You need to remember that the XML empty element shorthand syntax <foo /> can only be used in XHTML (served as text/html) for elements that are defined by the (X)HTML DTD as having an empty content model.

        As IE's parser doesn't know anything about XHTML (it's HTML-only) it sees the trailing slash within the start tag as the declaration of an attribute; as "/" isn't a valid name for an attribute, it then discards it as an ignorable syntax error, sees the ">" as the end of the start tag, and treats subsequent content as the contents of the <script> tag.

        The only reason it doesn't similarly fail for constructs like <br /> and <img /> is that they are defined in the DTD as having an empty content model, and therefore it doesn't expect to find an end tag for them.

        In fact, the <script /> construct should also fail on other browsers when the same content is served to them with Content-Type "text/html" instead of "application/xhtml+xml", for the same reasons.
        Thanks. I feel so much better for knowing that!

        Comment


          #5
          Originally posted by k2p2 View Post
          Thanks. I feel so much better for knowing that!
          Go and have a beer. Relax and don't think about it till tomorrow.
          "Ask not what you can do for your country. Ask what's for lunch." - Orson Welles

          Norrahe's blog

          Comment


            #6
            Originally posted by norrahe View Post
            Go and have a beer. Relax and don't think about it till tomorrow.
            could be worse. Imagine trying to repair a server that was allegedly backed up and has multiple disk failures, for a friends company, in the full knowledge that if you fail they are stuffed.
            With them politely loitering, trying to refrain from only ask questions every five minutes to every 10.



            Got it sorted though

            Comment


              #7
              Originally posted by k2p2 View Post
              I can't do this css layout bollx. Give me a <table> any day.
              And they're paying you how many £100s a day as an experienced expert? .
              Originally posted by MaryPoppins
              I'd still not breastfeed a nazi
              Originally posted by vetran
              Urine is quite nourishing

              Comment


                #8
                Originally posted by wingnut View Post
                could be worse. Imagine trying to repair a server that was allegedly backed up and has multiple disk failures, for a friends company, in the full knowledge that if you fail they are stuffed.
                With them politely loitering, trying to refrain from only ask questions every five minutes to every 10.



                Got it sorted though
                top man
                (\__/)
                (>'.'<)
                ("")("") Born to Drink. Forced to Work

                Comment


                  #9
                  Originally posted by EternalOptimist View Post
                  top man
                  thanks.

                  doesn't help out matey boy admittedly but I can't really help.

                  Perhaps a curry on top of all those beers would help?

                  Comment


                    #10
                    Originally posted by d000hg View Post
                    And they're paying you how many £100s a day as an experienced expert? .
                    Indeed. I did tell 'em up front I don't do design stuff. No worries, they said, they'll supply the designs. I was confidently expecting HTML but got a PDF. Ah well, they seem happy enough with my botch job. Mind you, they haven't looked at it in IE6 yet...!

                    Comment

                    Working...
                    X