Need help! Why IE shows my template as pure xml code? Urgent!!

Discussion in 'HTML & Website Design' started by Greyhound, Feb 10, 2008.

  1. #1
    Hello everyone,

    I just made a phproxy template. Every browser is OK except IE6/5. IE6 shows it as pure xml codes but other browsers like firefox and opera show the correct html page. I don't know why. Help me please. Thanks.
    The url is: http://demo.ixmv.com/preview/firming/

    Krute
     
    Greyhound, Feb 10, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    First off, remove the XML declaration at the top of the page. That's going to throw IE into Quirks Mode. Second, move the comments out from between the DOCTYPE and the opening HTML tag.
     
    Dan Schulz, Feb 10, 2008 IP
  3. Greyhound

    Greyhound Banned

    Messages:
    1,637
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Thanks. It's OK now. The comments caused the problem.
     
    Greyhound, Feb 10, 2008 IP
  4. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #4
    You should still remove this

    <?xml version="1.0" encoding="utf-8"?>

    From the top of your page. Your page isn't xml so there is really no use for that.
     
    bigrollerdave, Feb 10, 2008 IP
  5. Greyhound

    Greyhound Banned

    Messages:
    1,637
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    78
    #5
    Thanks for your advice. I'll do this. Thanks.:)
     
    Greyhound, Feb 11, 2008 IP
  6. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ack, two Stewies! I can't tell one from the other!
     
    Stomme poes, Feb 11, 2008 IP
  7. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #7
    The main reason actually being that ANYTHING (even white space) above the DOCTYPE will throw IE 6 into Quirks Mode.
     
    Dan Schulz, Feb 11, 2008 IP
  8. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #8
    Yeah nothing should be above the doctype after it's been parsed. Still though there is no need for the xml tag if the page isn't actually xml. I think I read somewhere the google also ranks your site worse if there are errors in the code. I guess he could keep it but it's bad practice to leave it there.
     
    bigrollerdave, Feb 11, 2008 IP
  9. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Google won't rank your site worse if there are errors in the code.
     
    Dan Schulz, Feb 11, 2008 IP
  10. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #10
    I've read that in a few different sources but I'm not sure what to believe anymore. It would make sense though from google standpoint. I don't think anyone really knows what all google uses to rank sites though.
     
    bigrollerdave, Feb 11, 2008 IP
  11. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Dan Schulz, Feb 11, 2008 IP
    bigrollerdave likes this.
  12. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #12
    bigrollerdave, Feb 11, 2008 IP
  13. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #13
    He basically says that Google won't penalize for invalid markup, but that the technology does exist to detect invalid code and that the company may choose to incorporate it into the algorithm in the future (though he doesn't sound very enthusiastic about it).
     
    Dan Schulz, Feb 11, 2008 IP
  14. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #14
    Gotcha it would make sense to include it though. Having a good markup is the basis for a good website. It's like a house you can't have a nice house that's built on a bad foundation. Good stuff though rep added.
     
    bigrollerdave, Feb 12, 2008 IP
  15. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #15
    You're preaching to the choir, Dave. I'm a Web developer that focuses on accessibility, clean minimal semantic and valid markup, SEO and usability by trade. :)
     
    Dan Schulz, Feb 12, 2008 IP