Re: Amaya 9.99-4 WinXP bug: [ and ] characters in name attribute of form elements

In fact i know of one situaion where you DO NOT want name and id 
the same .....  Scenerio is several  input areas that have similar data
to be verified by javascript prior to submission (say a set of mail addresses)
by using the same name vale on each entry area, they can be checked
as an array of that name ... makes repeated validity checks a simple for loop
i use this often ... and of course if the name values were forced to be 
unique  then there is no array and no point to having both name/id  attributes

Methinks Amaya should remove this artificial constraint from the program 
as it has no validitiy in major purpose of Amaya (ie ensuring recommendation
conformance) 

Hi Irène,

Irene Vatton escribió:
 > Within XHTML documents, the name attribute value must be duplicated 
into the
 > id attribute. So the following restriction is applied:
 >

The W3C validator does not follow this rule (name attribute must be 
duplicated into id attribute). The following source code is checked as 
valid XHTML 1.0 Strict:

<?xml version="1.0" encoding="iso-8859-1"?>
<!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>test</title>
   <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />
</head>
<body>
<p>Text: <input type="text" name="text[1]" /></p>
</body>
</html>

So, is it a bug of the W3C Validator?

Best regards,
Barto


-- 
-- 
John Russell, VE3LL@COGECO.CA
http://home.cogeco.ca/~ve3ll
http://home.cogeco.ca/~trains
http://home.cogeco.ca/~cipher

Received on Saturday, 2 February 2008 14:11:51 UTC