Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Apr 2013
    Posts
    15
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Exclamation Why is IE 10 going into compatibility mode on my site?

    Hi All.

    I've just noticed that internet explorer's decided to run my site in compatibility mode. This breaks a lot of my css and rounded buttons, html5 etc.

    It's literally started doing it today, and I don't know why - but it's happening on more than one pc... I wondered if I'd hit it by mistake when refreshing, but that would have only made it go into that mode on one pc (I think).

    Can anyone suggest what's causing this? I should say that my coding knowledge is very basic - and I'm in Wordpress.

    Is there any way to force IE to NOT go into compatibility mode? The site works fine when I manually swap back.

    here's a page on my site for example

    Cheers,

    Oliver

  • #2
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    398
    Thanks
    2
    Thanked 30 Times in 30 Posts
    HTML validation fails with a fatal error and the validator cannot complete the scan because of serious structural errors involving an invalid body tag (among others). I suspect that when IE10 sees the mess the code is in it reverts tocompatibility mode because that is the only way it can cope with the junk.

    Fix the code so it validates and you probably will solve the problem.
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • Users who have thanked COBOLdinosaur for this post:

    Oliver Dewar (04-21-2013)

  • #3
    New Coder
    Join Date
    Apr 2013
    Posts
    15
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Question

    Thanks.

    I've never looked at these validators before... and don't understand what it says.

    The fatal error is the one I'll tackle first as it seems most likely to be the ultimate cause.

    what does this mean?

    Line 580, Column 92: An body start tag seen but an element of the same type was already open. …page page-id-7084 page-template page-template-page_full-php custom-background">

    UPDATE
    Actually - don't worry about this post I'm testing now and think I understand this one though fixing it has created other problems.
    Last edited by Oliver Dewar; 04-21-2013 at 11:01 PM.

  • #4
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    398
    Thanks
    2
    Thanked 30 Times in 30 Posts
    fixing it has created other problems
    That is common. You coded to get a given rendering but because the structure was invalid, it probably took other invalid code to get what you need. At some point the invalid code creates a problem that can no longer be worked around, or the page just collapses.

    The best approach is to validate frequently as you are developing. The validator only takes a few seconds to run but can save hours and even days of maintenance time.

    This piece about the value of validation might help.
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • Users who have thanked COBOLdinosaur for this post:

    Oliver Dewar (04-22-2013)

  • #5
    New Coder
    Join Date
    Apr 2013
    Posts
    15
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Smile

    Yeah - thanks.

    I think the main problem here stems from messing with a Wordpress Themes headers, footers nav bar etc to create a 'second theme' within the first (when I don't understand what I'm doing!)

    The original theme by itself didn't trigger the compatibility mode... so I'm going to split my website into two and use the built in functions rather than messing with everything by code.

    I'm pretty confident this will handle the issue.

    There are still errors that my site's throwing up that I'll handle later as well though.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •