Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8853503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:40:12+00:00 2026-06-14T13:40:12+00:00

I have a puzzling problem: this seemingly simple page doesn’t work in IE9: <?xml

  • 0

I have a puzzling problem: this seemingly simple page doesn’t work in IE9:

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!-- jq.js is the non-minified jQuery library -->
    <script type="text/javascript" src="jq.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('body').append('<h1>ok</h1>');
        });
    </script>
</head>

<body>
</body>
</html>

The behaviour I get is that sometimes the page displays “ok”, and sometimes it doesn’t display anything. I have found out that it depends on how fast the computer is. If you’re on a fast computer, it usually works, but on slow computers, it fails around 2 out of 3 times.

When I look in the debugging console, the symptom is that jQuery gets a permission denied when trying to access navigator.userAgent.

The browser writes (in the log) that it is switching from quirks mode to IE9 mode. My hypothesis has been that jQuery is being loaded before the browser switches to IE9 mode, causing jQuery to be caught in the quirks mode and from there on unable to access any browser attributes.

I have tried inserting <!doctype html> and inserted the X-UA-Compatible meta tag to make IE9 switch to IE9 mode right away, but it didn’t fix the problem.

I have managed to leave out jQuery and reproduce the issue with this simple snippet:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
</head>

<body>
    <script type="text/javascript">
        document.write('<h1>testing</h1>');
        try {
            document.write('<h1>' + navigator.userAgent + '</h1>');
            document.write('<h1>ok</h1>');
        } catch(e) {
            document.write('<h1>not ok</h1>');
        }
    </script>
</body>
</html>

(Available at http://test.m.e17.dk/ie9-navigator/.)

Reproduce it by:

  1. Open the page.
  2. Press F5.
  3. Place cursor in address bar.
  4. Press enter.

Repeat steps 2-4 as often as desired. Could the issue arise from not waiting for the DOM to load (as said in http://bugs.jquery.com/ticket/12282).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:40:14+00:00Added an answer on June 14, 2026 at 1:40 pm

    I have found the cause of this error: it was a group policy setting in Active Directory that caused IE9 to misbehave. I’ll try to get the exact name and add it here for anyone who’d encounter the same issue.

    Thanks to everyone helping out.

    The policy in question is in the attached picture below.

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been puzzling over a problem this morning with LinqToSQL. I'll try and
This problem is really puzzling to me: I have the following script working on
I am puzzling over an event plumbing problem on my page. I have a
I have a simple setup and encountered a puzzling (at least for me) problem:
I have a small problem with a SWT.Browser widget who throws a quite puzzling
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I have a puzzling problem with trying to make an ajax/static state program. What
I have a really puzzling problem: I am writing a PHP CLI application running
How would you solve this problem? (At the beginning it seemed simple, then I
this one been puzzling me for a couple of searching hours. So I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.