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 5331 - W3C standard radio button
Summary: W3C standard radio button
Status: RESOLVED INVALID
Alias: None
Product: AppC Checker
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-30 00:04 UTC by Pin-Wei
Modified: 2007-12-30 09:47 UTC (History)
0 users

See Also:


Attachments

Description Pin-Wei 2007-12-30 00:04:36 UTC
Hi, I am not so sure that I posted at the right product. If not, please change for me.

I am trying to report a bug in the W3c recommendation.

Here is an example code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<title>Prospective Student Database</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<form action="insert.php" method="post">
<input type="radio" name="gender" value="1">Male
</form>
</body>
</html>
//END OF CODE

If I put in this code into the HTML validator(http://validator.w3.org/#validate_by_input). If will give me some errors that at the radio button I am suppose to change to '<input type="radio" name="gender" value="1"/>Male'. Notice the place I changed is the ending tag '>' to '/>'. But I checked the W3C recommendation document, even the document showed  a wrong example. You may check here: ( http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html ). In the chapter 17.1, it has radio button ending with '>' instead of '/>'. Please note that 17.1 is just an example that I am trying to show you, but actually the whole document has many same problems inside. Like 17.4.2 , 17.9.1 , ...
Comment 1 Ville Skyttä 2007-12-30 09:47:26 UTC
(In reply to comment #0)
> Here is an example code:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[...]

In the above, your document is XHTML 1.0 Transitional...

> But I checked the W3C recommendation document, even the document
> showed  a wrong example. You may check here: (
> http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html ).

...but here, you are looking into the documentation of HTML 4.01, not XHTML 1.0.  See the XHTML 1.0 docs at http://www.w3.org/TR/xhtml1/