Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari displaying javascript in browser window (sometimes)



Hello,

I manage a small web site for a school and am finding that some pages sometimes display incorrectly when viewed in Safari. I've tried this on several machines running recent versions of Safari (Version 2.0.3 (417.8)) and the effect appears intermittently on all of them, but does not appear in the other browsers I've tried. As far as I can see my code is OK.

What happens is that a page which previously loaded normally will this time load up to a point and then either miss out a section of text or display a chunk of javascript from the page source. The pages on the site are all built from include-files with data served from a CMS, which means that apart from the individual text of the page everything else is identical. When the problem affects a page it seems to be just that page, and then on another occasion (perhaps the next day) it will affect a different page.

When the page breaks like this, viewing the source in Safari shows it to be perfectly correct, but when I view the DOM tree it is clear that something is being processed incorrectly.

The only clue I can see is that the point in the displayed page where the problem is evident is exactly where there is a ">" character in both the HTML and the javascript. In other words, it appears that when the page is being drawn it reaches a point in the HTML which contains a ">" and then stops displaying the correct content and instead writes to the screen whatever comes after a later ">" character, regardless of whether this character is found within a javascript.

To see the effect, visit the site at <http://www.waldorf-swlondon.org/ index.shtml> and in the "Upcoming events..." section click the entry for "Management meeting" 24 March. This may or may not display the error, but in case it doesn't I've uploaded several files showing the problem to my idisk, username coconino, in the folder "safari_bug_notes_march06". These include screen grabs of the page as well as webarchive files.

-= Philip
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.