W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000


From: Grant MacKenzie <grant@markup.co.nz>
Date: Wed, 20 Sep 2000 19:55:42 -0400 (EDT)
To: <html-tidy@w3.org>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<form action="">
<p><input type="text" name="focus" onfocus="alert()" /></p>

Tidy output

Tidy (vers 30th April 2000) Parsing console input (stdin)
line 11 column 4 - Warning: unknown attribute "onfocus"

"stdin" appears to be XHTML 1.0 Strict
1 warnings/errors were found!

Same false warning for  form element input elements like textarea

Excluding option optgroup legend and fieldset, from my reading of the strict
dtd the other form elements can have an onfocus attribute.

<!-- attributes for elements that can get the focus
  accesskey   accessibility key character
  tabindex    position in tabbing order
  onfocus     the element got the focus
  onblur      the element lost the focus
<!ENTITY % focus
 "accesskey   %Character;    #IMPLIED
  tabindex    %Number;       #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED"
Received on Wednesday, 20 September 2000 20:00:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC