This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6075 - XHTML 1 strict and form name
Summary: XHTML 1 strict and form name
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: All All
: P1 minor
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://wfredk.com/work/ABN/20100312_h...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-15 18:52 UTC by Greg Gay
Modified: 2010-03-14 12:03 UTC (History)
2 users (show)

See Also:


Attachments

Description Greg Gay 2008-09-15 18:52:06 UTC
In the current version of the validator 0.8.3, when validating an XHTML 1.0 Strict document, it repost the error

Error  Line 53, Column 11: there is no attribute "name".

<form name="input_form" enctype="multipart/form-data" method="post" action="/ach...


Looking at the strict dtd it does not include name as an attribute for form. It seems to me this is an error in the dtd.
Comment 1 Olivier Thereaux 2008-09-15 20:41:19 UTC
The non-inclusion of <form name="... (already deprecated in HTML 4.01) seems to be on purpose.

http://www.w3.org/TR/xhtml1/#h-4.10

This is, in any case, not a validator bug. You might want to ask the www-html list about it, but I suspect they may give the same answer.
Comment 2 Fred Koschara 2010-03-12 17:46:29 UTC
Using the W3C Markup Validator, v0.8.6, the first form (only) in a Strict document results in an error stating there is no "name" attribute.

Note that the "error" is reported for the first form only on the page, not all of the forms.


In the Strict DTD at http://www.w3.org/TR/html401/sgml/dtd.html, in the section marked "==== Forms ====" there is clearly a "name" attribute listed:
    name        CDATA          #IMPLIED  -- name of form for scripting --

Further, in the HTML 4.01 discussion at http://www.w3.org/TR/html401/interact/forms.html#adef-name-FORM states:
    This attribute names the element so that it may be referred to from style
    sheets or scripts. Note. This attribute has been included for backwards
    compatibility. Applications should use the id attribute to identify elements.

The "name" attribute is *NOT* deprecated, and MUST NOT BE deprecated until, for example, the HTML DOM provides a mechanism to access forms in a document by id, rather than only providing access by name.  (see http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-40002357)
Comment 3 Ville Skyttä 2010-03-14 12:03:30 UTC
(In reply to comment #2)
> Note that the "error" is reported for the first form only on the page, not all
> of the forms.

This is on purpose - the validator intentionally tries to avoid reporting the same error/warning several times (this doesn't work for all errors or warnings though).

> In the Strict DTD at http://www.w3.org/TR/html401/sgml/dtd.html, [...]

This bug is about XHTML 1.0 Strict, not HTML 4.01 Strict, and XHTML 1.0 Strict does not have the name attribute for form.  See comment 1.