You are here: Re: xhtml strict javascript problem trying to use "id" in plane of "name" attribute « HTML « IT news, forums, messages
Re: xhtml strict javascript problem trying to use "id" in plane of "name" attribute

Posted by Martin Jay on 08/28/07 00:54

On Tue, 28 Aug 2007 00:07:27 -0000, meyazoo@gmail.com wrote:

>I have tried to resolve this in several ways that I have found on the
>internet, but none seems to work. Here is the shortened code which is
>a website displaying a webcam. The .jpg is overwritten with new image
>from the camera. This code works, but does not pass W3C XHTML
>STRICT.
>
>1) How can I keep this working, and change the attribute to "id" so is
>passes STRICT?

The 'id' is fine. The validator doesn't like 'name.'

>2) While I'm asking questions, what purpose does the "//" in the //<!
>[CDATA[ line perform? When I read the spec (http://www.w3.org/TR/
>xhtml1/) it only says to use <![CDATA[ ?

There's an explanation here: <http://en.wikipedia.org/wiki/CDATA>.

You may find that 'HTML 4.01 strict' is more suited to your needs.
--
Martin Jay

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация