David
Thanks for the comments.
The markup and css on the page in question both validate but obviously
there is an issue with the javascript which contains markup which, as
you say, certainly isn't compliant.
I don't understand why there is a problem with document.write and how
that invalidates the XHTML. Is that markup?
Looking at the page called by the javascript I imagine I would have to
declare the parent page as transitional or can you have a transitional
page inside an iframe and still declare the parent page strict?
--
Chris Price
David Dorward wrote:
On Thu, Dec 07, 2006 at 12:41:57PM +0000, Chris Price wrote:
Is this any good?
http://choctaw.co.uk/tftw.php?counter=45
Javascript is used on the page so its xhtml compliant.
No, it isn't.
(1) Uses document.write. Most XHTML implementations don't support
document.write.
(2) The code that is document.written uses the <nolayer> tag... which
isn't part of any XHTML standard I've seen.
(3) Said code also fails to represent ampersands with the &
entity.
(4) <br> is missing the end tag
(5) Iframes don't have marginwidth or marginheight attributes
(6) ... and so on.
Not to mention the obsolete and deprecated presentational markup.
And the style attributes containing invalid CSS that won't work
correctly in Standards mode in most browsers.
Kind Regards
--
Chris Price
Choctaw
[EMAIL PROTECTED]
http://www.choctaw.co.uk
Tel. 01524 825 245
Mob. 0777 451 4488
Beauty is in the eye of the beholder
while excellence is in the hand of the professional
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-+- Sent on behalf of Choctaw Media Ltd -+-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************