Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 12, 2008, 02:15 PM   #1
Flynnstone
macrumors 65816
 
Flynnstone's Avatar
 
Join Date: Feb 2003
Location: Cold beer land
Anybody have an an idea why this webpage ...

Anybody have an an idea why this webpage doesn't show up or render? (in Safari)

www.imagenex.com
__________________
"You can't solve your problems with the same level of thinking that created the problems." - Einstein
New iMac 24"/G5 1.8/...
Flynnstone is offline   0 Reply With Quote
Old Feb 12, 2008, 02:16 PM   #2
PlaceofDis
macrumors Core
 
Join Date: Jan 2004
appears to work fine in camino.

__________________
dim my eyes on the waves of confessions...
PlaceofDis is offline   0 Reply With Quote
Old Feb 12, 2008, 02:18 PM   #3
Flynnstone
Thread Starter
macrumors 65816
 
Flynnstone's Avatar
 
Join Date: Feb 2003
Location: Cold beer land
Works with Firefox too.
But not Safari.
__________________
"You can't solve your problems with the same level of thinking that created the problems." - Einstein
New iMac 24"/G5 1.8/...
Flynnstone is offline   0 Reply With Quote
Old Feb 12, 2008, 03:36 PM   #4
kgarner
macrumors 68000
 
kgarner's Avatar
 
Join Date: Jan 2004
Location: Utah
Safari's Web Inspector shows 3 errors on load, the big ones are a </HEAD> with no matching opening tag and an extra <BODY> tag. But there are a lot of scripts that are called that give no indication as to what they are doing. There is a chance that one of them is some kind of browser detect that doesn't know Safari exists.
__________________
Mac Pro 2.66 Quad | Mini 1.42 G4 (running as HTPC)
digitalsandbox.net
"Monkeys are like bacon. They improve just about anything." -Andy Ihnatko
kgarner is offline   0 Reply With Quote
Old Feb 12, 2008, 04:02 PM   #5
BlakTornado
Guest
 
Join Date: Apr 2007
Location: Washington, OH
Web designers don't take Safari into account when making webpages. Same with Opera and various others because they aren't mainstream browsers (in their opinions). Often, companies try to make sure sites work fine in Internet Explorer and forget about the rest.

This is possibly why it's not working.
BlakTornado is offline   0 Reply With Quote
Old Feb 12, 2008, 04:54 PM   #6
Makosuke
macrumors 603
 
Join Date: Aug 2001
Location: The Cool Part of CA, USA
That's sort of interesting; here's what it's choking on:
Code:
<STYLE ID="NOF_STYLE_SHEET">
<!--
DIV#LayoutLYR { position:absolute; top:0; left:0; z-index: 1; visibility:hidden; }

DIV#Banner5LYR { position:relative; visibility:inherit; top:0; left:0; width:413; height:96; z-index:1; }
-->
</STYLE>
Specifically, the visibility:hidden; in #LayoutLYR. If I'm reading it correctly, the stuff in there should be commented out, but Safari is definitely treating it as if it isn't. Uncomment it, and you get the same in any browser--a long page of nothing with a spacer image or something at the top.

Is there something wrong with that comment such that it's not technically valid and that's why Safari isn't treating it as a comment, or is this a Safari bug? Edge case, but if it's actually a bug, it should be reported.

Not familiar enough with the spec--if an HTML comment (<!-- -->) appears within a style declaration directly in the head of a document, does that mean that it should be ignored (in which case Safari is wrong), or does everything within that style declaration get treated as if it were CSS, and thus is only checked for CSS comments (/* */), in which case Safari's behavior is correct.

Or maybe the spec isn't specific, so either is acceptable.

[Edit: Just noticed that TextWrangler's syntax coloring agrees with Gecko--colors it as if it's commented out--while it correctly recognizes "commented" material within a <SCRIPT> tag as being "live".]

Last edited by Makosuke; Feb 12, 2008 at 05:02 PM.
Makosuke is offline   0 Reply With Quote
Old Feb 12, 2008, 05:25 PM   #7
angelwatt
Moderator emeritus
 
angelwatt's Avatar
 
Join Date: Aug 2005
Location: USA
There is so many things wrong with that page I'm shocked any browser can display it. Makes me sick to my stomach.

I agree with Makosuke with is being the "commented" out styles. Safari is interpreting it correctly by not seeing as commented out as the CSS specification says [1] comments in the style tag is done with /* comments */. It's up to the browser to decide what to do with a <!-- comments --> style. Safari generally follows the standards better, including not trying to fix bad code so it displays. I like that about Safari personally.

1. http://www.w3.org/TR/REC-CSS1#comments
angelwatt is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Publicly funded elections? Good idea? Or Bad Idea? G51989 Politics, Religion, Social Issues 171 May 13, 2014 03:26 PM
Turning off hibernation mode for SSD good idea or bad idea? whitedragon101 MacBook Pro 6 Nov 25, 2013 04:51 AM
Grabbing my iPhone in a night fire: Good idea or bad idea? Please read post 1st. moonman239 Wasteland 23 Feb 22, 2013 07:37 AM

Forum Jump

All times are GMT -5. The time now is 09:14 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC