Safari showing source code in browser

This morning one of my users machines started rendering all web pages with the source code showing in the browser. It seems to be code in the head tags like javascript and css. here is an example of how safari is rendering the apple home page http://www.aloftgroup.com/safari.jpg
According to the user they didn't change any settings or install anything new. I can't figure it out. I have checked it against other machines running the same set up and everything looks fine on there machines and all the settings are the same.
I dumped the safari preference file com.apple.safari.plist
Thanks in advance

I experienced this too, and I'm not alone.
Every now and then, this page: http://ace.dse.nl/ace_jubileum.html shows up in Safari as html code.
I had a look at the code and changed it so that it now validates as "Valid HTML 4.01 Transitional" code in the http://validator.w3.org/ - but this doesn't seem to make any difference.
The weird thing is that this error happens randomly. If you reload the page 20 times, it happens one or two times.
I read on www.antipixel.com that this behaviour was reported more than a year ago, and seems to be a Safari bug.
Any work-arounds?

Similar Messages

  • Safari Displays Source Code by Default

    I've set file:///Users/MyName/Sites/1/index.php as my home page on all my browsers. It works fine in Firefox and Opera, but in Safari it displays the source code. Can someone tell me what's going on and how to fix it?
    Thanks.

    Here's the head section and beginning body section. (I just discovered I have
    two instances of <style type='text/css'> though I wouldn't think that would nix the page display.):
    <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
    <head>
    <title></title>
    <style type="text/css">
    body { margin: 0; padding: 5px 15px 25px; background: #fff; font-family: Arial, Verdana, Helvetica, sans-serif;
    font-size: 90%; font-weight: normal; color: #000 }
    p { text-align: left; text-indent: 0px }
    /* HYPERLINKS */
    a:link { color: #0000ff; text-decoration: none }
    a:visited { color: #0000ff; text-decoration: none }
    a:hover { color: #ff0000; background-color: #ffff00; text-decoration: none }
    div { padding: 5px; }
    div#toplinks { border-bottom: 1px solid #000; }
    div#geobop { background: #cff; }
    div#rep5 { background: #fcc; }
    div#media { background: #ff9; }
    div#ref { background: #eee; }
    div#computers { background: #cff; }
    div#allies { border-bottom: 1px solid #000; }
    .hilite { padding: 0px 5px 0px; background: #ff0; }
    .yellow { padding: 0px 5px 0px; background: #ff0; }
    .aqua { padding: 0px 5px 0px; background: #0ff; }
    .lime { padding: 0px 5px 0px; background: #0f0; }
    .green { padding: 0px 5px 0px; background: #cfc; }
    .red { padding: 0px 5px 0px; background: #ffc; }
    .blue { padding: 0px 5px 0px; background: #cff; }
    .gray { padding: 0px 5px 0px; background: #eee; }
    </style>
    <style type='text/css'>
    body {
    margin:0; padding:0;
    color:#000; background:#fff;
    font-family:verdana,arial,sans-serif;
    h3, h4 { margin: 0px; padding: 0px; }
    #page {
    margin:0% 10%;
    background:#fff;
    #header {
    margin:10px; padding:5px;
    border:1px dotted #333;
    #title { padding: 0px;
    .menu {
    background:#ff9;
    #content {
    margin:1em; padding:1em;
    border:1px dotted #333;
    #footer {
    margin:1em; padding:1em;
    text-align:center;
    border:1px dotted #333;
    .app {
    margin:1em; padding:.2em;
    background:#eee;
    border:1px dotted #333;
    .app p {
    margin:0; padding:0;
    .fltL3 {
    float:left;
    width:28%;
    padding:1em;
    .fltL4 {
    float:left;
    width:20%;
    padding:.5em;
    .fltL5 {
    float:left;
    width:15%;
    padding:.5em;
    .clrBoth {
    clear:both;
    </style>
    <script type='text/javascript'>
    // if js is disabled we want app elements to be visible
    // so they are visible by default in the CSS
    document.write("<" + "style type='text/css'>.app{display:none;}<" + "/" + "style>");
    window.onload = function()
    dsds_onload();
    function dsds_onload()
    var ln=1, // lnk number
    lo=1; // lnk object
    for (; lo; ++ln) {
    lo = document.getElementById('lnk' + ln);
    if (lo) {
    lo.appId = 'app' + ln;
    lo.onclick = dsds_onclick;
    window.currentAppId = null; // global
    // assumes app elements have display:none initially
    function dsds_onclick()
    var e;
    if (currentAppId && currentAppId != this.appId) {
    e = document.getElementById(currentAppId);
    e.style.display = 'none';
    e = document.getElementById(this.appId);
    if (e.style.display == 'block') {
    e.style.display = 'none';
    currentAppId = null;
    else {
    e.style.display = 'block';
    currentAppId = this.appId;
    return false;
    </script>
    </head>
    <body>
    Basics
    <!-- Menu 1 -->
    Popular |
    Biz |
    Search/Rank |
    MyComputer |
    Personal |
    Medical |
    Jobs |
    Calendar |
    Notes |
    Misc
    <!-- end Menu -->

  • Is there any way to hide our source code  in browser

    in web browser by using the
    view -----> source
    one can see the source of that page..
    is there any way to hide it.

    Encryption/decryption solutions are only useful if you want to "hide" the source from point to point and it is meaningless if you want to hide source from the client (the other point).
    The question of interest is here: why do you want to hide the source from the client?
    If it is really an important requirement, consider an applet or a standalone application instead of webapplications. Although it is harder to do, but those can still be reverse engineered.

  • How to load the JSP Source Code from Browser

    I have made a program using JSP ( one file ) and Java Beans ( 2 files ).
    The processed in those JavaBeans files and for output to Browser using JSP File.
    And I'm using JBuilder7 Software for building my applicaton.
    I already tested my source through JBuilder ( Applet Viewer ) and my source is running well but I got problem when to load that JSP file through Browser ( IE 6 ) with URL.
    Can anybody help me with this ?
    Best Regards,
    Yeppy S.

    I have made a program using JSP ( one file ) and Java Beans ( 2 files ).
    The processed in those JavaBeans files and for output to Browser using JSP File.
    And I'm using JBuilder7 Software for building my applicaton.
    I already tested my source through JBuilder ( Applet Viewer with TOMCAT Virtual Machine ) and my source is running well but I got problem when to load that JSP file through Browser ( IE 6 ) with URL.
    I put my source at F:\Source\Kiosk9 and my JSP file at F:\Source\KiosK9\defaultroot.
    And the JavaBeans Files at F:\Source\KiosK9\src\kiosk9.
    And the name of the package is kiosk9.
    My structure directory :
    F:\Source\KiosK9
    F:\Source\KiosK9\bak
    F:\Source\KiosK9\classess
    F:\Source\KiosK9\defaultroot
    F:\Source\KiosK9\src
    F:\Source\KiosK9\tomcat
    This directory structure was made automatically by JBuilder7 ( F:\JBuilder7 ).
    URL : http:\\localhost:8080\defaultroot\KiosK9Jsp.jsp
    And the error is :
    "Socket Error
    Connection refused by Remote Host"
    Can anybody help me with this ?
    Best Regards,
    Yeppy S.

  • Macbook Air not showing source code

    I'm migrating from my MacBook Air to an iMac. When I've chosen my MacBook Air it tells me to wait until the code pops up on my MacBook. The code never seems to pop up on my MacBook Air. I've rebooted my router, and both devises. Some help would be splendid!
    What I'm doing:
    Migration of internet
    Both devises are up to date
    My older devise has limited space
    I've set up all my iCloud and iTunes information
    -Mida

    You would be much further ahead by connecting the two via an ethernet cable and migrating via ethernet Move your data to a new Mac - Apple Support

  • Help me stop Safari showing souce code for all pages

    Safari has been doing this for all pages including apple.com
    The only change to the system was the new combo update. Now I'm using Firefox. Can someone give me a reason to go back to Safari?

    I better add that this also affects any of the help windows for other products. Many times I just get a long line of the different help topics without formatting. It is very annoying that i cannot read the Hlep menus properly. Can anyone help me please?

  • Safari loads web page as a white blank page (source code present, however)

    I created a personal website for my portfolio. Before updating it would only load in safari if...
    I typed the address in the url and hit enter, then added www. and hit enter, and finally once I erased the www. the page would finally load.
    Now with the update it only loads when it wants to?!?!
    The source code is always visible, but it usually only shows up as a blank white page!
    Please help me, this is ridiculously frustrating considering it works in every other browser.

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.adammunns.com%2F&charset=%28d etect+automatically%29&doctype=Inline&group=0
    I had trouble using Safari, too. Second "refresh" loaded the page.

  • Unwanted source code appears in browser but not in Dreamweaver Code Window

    I am using templates and css, and Dreamweaver to build a new website of about 20 pages. With the first several pages, everything was working well. Then as I continued to add pages, I started to notice some code appearing at the bottom of web pages (under the footer), and then, a page duplicating the footer, and then, the drop-down function on the index page not working (pulls down and pops right back up) while headers on other pages work fine. I viewed the source code in the browsers (IE and Firefox) and I see the extra code at the bottom. However, this code doesn't show up in Dreamweaver, or, when I open the files in Notepad.
    Following is an example of the different bottom-most lines of code in the Firefox browser compared to what I see in Dreamweaver or Notepad (note the highlighted line that is not showing up in Notepad or Dreamweaver).
    Firefox Browser:
    </div>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <!-- InstanceEndEditable --><script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script> 
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js"></script>
    </body>
    <!-- InstanceEnd --></html>ript> 
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js"></script>
    </body>
    <!-- InstanceEnd --></html>
    Notepad or Dreamweaver code screen:
    </div>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <!-- InstanceEndEditable --><script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script> 
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js"></script>
    </body>
    <!-- InstanceEnd --></html>

    this answer is a bit late, but i think i have figured this problem out and it is probably still bugging someone out there.
    i was having the same issues through many dreamweaver upgrades and kept running into the same problem (only on my Mac though - PC never gave me trouble). anyway, my hard drive recently died and i had a brand new one installed and then i installed a fresh version of CS5. started building a page and ran into the same problem. now that this is happening on a new drive with a fresh OS and reinstalled software, i needed to look elsewhere.
    the problem is so simple you will more than likely cry at the amount of time you have wasted on it. more than likely if this is happening to you, you are working off of a network drive or a server. all my files are stored on a server locally, so when i make a change it is saving to the server. either a bad or slow connection to the server and/or a server going bad will cause this issue.
    take the same file that you are having problems with and save down to your desktop - then preview in a browser. so the solution is to build the entire site on your local drive and then FTP up to the live site when complete.
    hope this helps.

  • How to display source code of a webpage in Safari 7.0?

    Hello. I'm unable to find how we used to once enable developing tools in Safari Preferences or simply CMD + ALT + A to display the source code of a webpage. Now I've no clue how to display source code of a webpage in Safari 7.0 on Mac OS X Mavericks. Help.

    Hi gss2,
    Make sure you are not under the Apple icon but under Safari>Preferences>Advanced. All the way at the bottom check the box that says: "Show Develop menu in menu bar."
    Now go back to the page you want to get the source code for, right click on it and choose Inspect Element. Hope this helps.
    Cheers,
    LURDS LLC

  • How to read source code in Safari?

    How do I read a web page source code using Safari?
    Thanks.

    Safari > Preferences > Advanced > Show Develop in menu bar
    then
    Develop > Show Page Source

  • Viewing source code Safari 8.0

    How do you view the source code for a website in Safari 8.0/Yosemite?

    Safari - Preferences - Advanced - Show Advanced Menu, then  Develop menu and  select Show Page Source. 

  • SSI show as source page in browser

    I'm using DW8, OS 10.4.8, running Apache, php and MySQL and
    have a testing
    server set up on my machine with a virtual URL. Whenever I
    save a php page
    that has a php include and then view that page in my primary
    or secondary
    browser (Firefox, Camino), everything works fine.
    However, when I set up an SSI within a template (say for
    navigation) and
    save the page with a .shtml extension, the include will
    display fine in
    split view mode, but when I try to view the same page in my
    primary browser,
    the page displays as source code.
    My httpd.conf contains the
    Options +Includes
    And
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    Instructions, I've restarted Apache but the Preview in
    primary browser will
    only show me a page as source code. What am I missing?
    Thanks,
    Charles Newbury

    > However, when I set up an SSI within a template (say for
    navigation) and
    > save the page with a .shtml extension, the include will
    display fine in
    > split view mode, but when I try to view the same page in
    my primary
    > browser,
    > the page displays as source code.
    What is this page's extension? Is it *.php or *.shtm(l)?
    Also, are you
    using HTML includes, or PHP includes?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Charles Newbury" <[email protected]> wrote in message
    news:C19AFBDB.224C3%[email protected]..
    > I'm using DW8, OS 10.4.8, running Apache, php and MySQL
    and have a testing
    > server set up on my machine with a virtual URL. Whenever
    I save a php page
    > that has a php include and then view that page in my
    primary or secondary
    > browser (Firefox, Camino), everything works fine.
    >
    > However, when I set up an SSI within a template (say for
    navigation) and
    > save the page with a .shtml extension, the include will
    display fine in
    > split view mode, but when I try to view the same page in
    my primary
    > browser,
    > the page displays as source code.
    >
    > My httpd.conf contains the
    > Options +Includes
    > And
    > AddType text/html .shtml
    > AddHandler server-parsed .shtml
    >
    > Instructions, I've restarted Apache but the Preview in
    primary browser
    > will
    > only show me a page as source code. What am I missing?
    >
    > Thanks,
    >
    > Charles Newbury
    >

  • Browsing Source Code - 8 Space Tabs

    Greetings, all!
    When browsing source code (text files), things look a bit strange because Safari doesn't display 8 space tabs. Does anyone know of a way to gently encourage Safari to display 8 space tabs?
    Thanks in advance,
    Raj

    Raj,
    welcome to Discussions!
    I don't know of a simple way to configure Safari to act as you want. You can try looking for an answer in the Safari Developer site, or on the webkit official site.
    Hope this helps!

  • CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

    On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

    Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render
    Paste your jsp code in case you need further help
    Thanks,
    Ajit

  • How can I view the source code of chrome://browser/content/browser.xul?

    How can I view the source code of chrome://browser/content/browser.xul of mobile FireFox?
    In my desktop version I just open this page in new tab and view webpage source, but there is no option for FF mobile to view source code.
    Best regards.

    Does the view-source: protocol work on mobile?
    *view-source:chrome://browser/content/browser.xul

Maybe you are looking for