W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2008

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

From: <ve3ll@cogeco.ca>
Date: Sat, 02 Feb 2008 09:11:46 -0500
To: (wrong string) Ć© Sintes Marco <bartolomesintes@ono.com>
CC: www-amaya@w3.org
Message-ID: <47A433D2.21657.1052C5@ve3ll.cogeco.ca>

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

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"
<html xmlns="http://www.w3.org/1999/xhtml">
   <meta http-equiv="content-type" content="text/html; 
charset=iso-8859-1" />
   <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />
<p>Text: <input type="text" name="text[1]" /></p>

So, is it a bug of the W3C Validator?

Best regards,

John Russell, VE3LL@COGECO.CA
Received on Saturday, 2 February 2008 14:11:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:39 UTC