View Full Version : Trying to validate: XHTML 1.0 Strict
jc_gmk
05-31-2007, 09:03 AM
I'm trying to validate my document, it is a XHTML 1.0 Strict.
I have used some flash but it won't validate because I can't use <object> within <noscript>
Is there an alternative that will validate?
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','807','height','176','src','content/images/header','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','content/images/header' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="807" height="176" data="content/images/header.swf">
<param name="movie" value="content/images/header.swf" />
<param name="quality" value="high" />
</object>
</noscript>
You can wrap the <object> in a <div> or other block-level element, I believe. Read the Flash Satay (http://alistapart.com/articles/flashsatay) article for a guide on how to do it properly.
You do realise that by using XHTML you're dropping support for IE, right?
jc_gmk
05-31-2007, 10:31 AM
You do realise that by using XHTML you're dropping support for IE, right?
I mainly use IE to test my site and I haven't encountered any problems yet.
I've created sites using XHTML 1.0 Transitional before which have worked in all browsers. This is the first site I am creating that uses Strict.
What issues do you think I'll have using this DOCTYPE?
codeexploiter
05-31-2007, 10:56 AM
IE doesn't support native XHTML. Please have a look at this article (http://en.wikipedia.org/wiki/Criticisms_of_Internet_Explorer#XHTML)
It is better if you use Firefox for the testing purpose.
I mainly use IE to test my site and I haven't encountered any problems yet.
I've created sites using XHTML 1.0 Transitional before which have worked in all browsers.This means you've sent it as text/html. This isn't XHTML, it's badly-formed HTML. Just as when you send a PNG with a GIF MIME-type, the browser will attempt to parse it as HTML, not XHTML. The only difference is that in the case of XHTML it's similar enough to HTML that the browser can error-correct it into HTML and get some sense out of it, thus displaying your page "correctly" in most cases. However, don't be fooled: it's not XHTML, and none of the benefits of using XHTML (or, in fact, the benefits of using valid HTML) apply.
jc_gmk
05-31-2007, 01:51 PM
The code I have used is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
This was already created for me when making a new page in Dreamweaver v8.
Does this code not make it XHTML then?
Does this code not make it XHTML then?Not alone, no. It's not XHTML unless it's served as application/xhtml+xml, no matter what the DOCTYPE says.
jc_gmk
05-31-2007, 02:39 PM
Ok thanks.
Do you suggest that I go back to HTML 4.01 Strict then?
jc_gmk
06-01-2007, 08:05 AM
I still don't fully understand why it's not XHTML?
Even though when I submit it for validation I get this message?
http://i2.photobucket.com/albums/y37/66jimmy66/validxhtml.jpg
I used http://validator.w3.org/ to validate
codeexploiter
06-01-2007, 08:28 AM
I've validated the code you've provided in your one of the earlier comments under this thread and it validated as XHTML Strict. Please have a look at the attached image.
If you can provide the page source or a link to your page it would be easy for the users to find the exact reason.
It's perfectly valid XHTML, and the validator parses it as such. However, a browser visiting the same page would try to parse it as HTML, and it isn't valid HTML.
Ryan Fitton
06-01-2007, 03:29 PM
I mainly use IE to test my site and I haven't encountered any problems yet.
I've created sites using XHTML 1.0 Transitional before which have worked in all browsers. This is the first site I am creating that uses Strict.
What issues do you think I'll have using this DOCTYPE?
Hi, if its one thing I have learnt. It's not to use IE for testig your ages, because its crap! I use Netscape, FireFox and Opera. These are lot better browsers and not got as many bugs in them
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.