Hi Richard
| Lets look: Error number 1:
|
| Required attribute "TYPE" not specified.
| <script language="JavaScript">
|
| Pretty clear to me. You need to specify a type. Look at the specs(*), in
| this particular case, here:
|
http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.1
| and you will find
| <script type="text/javascript"> is the way to do it.
OK, thanks - I've changed <script language="JavaScript"> to <script
type="text/javascript"> throughout the site now; although I'm confused about
where the former syntax could have come from, given what you say - I
certainly wouldn't have made it up, so I must have got it from _somewhere_;
and it seems to be recognised by all browsers - even by Safari.
| Error number two: There is no attribute "marginheight". This is because it
| is a proprietary attribute invented by some particular browser
| manufacturer.
By Netscape, actually. Netscape 4.x doesn't recognise:
<Body topmargin="0" leftmargin="0">
.... and nor does it recognise:
body {margin:0;padding:0}.
Safari (and all other browsers I've tested other than Netscape) simply
ignore the marginheight statement - they display the pages identically
whether it's present or not; so I don't see what harm it can be doing.
Having said that, I'd be happy to remove the marginheight statement *if* I
could retain NS4 compatibility, but the NS4 compatibility is critical to me
To illustrate the point,
http://www.mvps.org/word//MainMenu.htm displays
correctly in all browsers that I've tested it with, *including Safari* and
including NS4; whereas
http://localhost/wordmvp/MainMenuTest.htm, which
lacks the marginheight statement, displays correctly in all browsers
*except* for NS4; and as I say, NS4-compatibility is critical.
In any case, given that marginheight doesn't cause Safari any problems, it's
not germane to my original issue, which was: why some pages on the site fail
to display in Safari, despite the fact that other pages on the site display
perfectly in Safari, and all pages on the site display perfectly on all
browsers I know of other than Safari.
Incidentally, the pages on my site that you looked at *do* display correctly
in Safari, at least in Safari 1.1 - as, in fact, do most pages on the site,
contrary to the information I was given by my original complainant - many
thanks to Kayode for his link to
http://www.danvine.com/icapture/; although
I don't know for sure whether they display in Safari 1.0 v85, as the
icapture site only seems to cover Safari 1.1.
The only pages on the site that *don't* display in Safari 1.1 are the
navigational ones such as
http://www.mvps.org/word/FAQs/.
| So, simply don't use it. If you want to specify a margin for an element
| then use CSS. The specs(*) are here:
|
http://www.w3.org/TR/REC-CSS2/
Thanks for the link. But (a) the spec doesn't explain how to achieve NS4
compatibility without breaking their rules, and (b) it doesn't explain why
almost all the pages on my site display perfectly in all browsers, whereas
http://www.mvps.org/word/FAQs/ doesn't display in Safari at all, although it
displays correctly in all other browsers. So I'm no further forward with
getting to the bottom of this, really ...
Regards
Dave