Re: Strict Not so strict.

scripsit Jamey Weare:
> 
>    I was demonstrating to my students the validator for
>    strict XHTML today and found it to not be so strict.
>    It allowed align, valign, border, and width attributes.

The Strict DTD [1] gives, for example:

# <!ATTLIST table
#   %attrs;
#   summary     %Text;         #IMPLIED
#   width       %Length;       #IMPLIED
#   border      %Pixels;       #IMPLIED
#   frame       %TFrame;       #IMPLIED
#   rules       %TRules;       #IMPLIED
#   cellspacing %Length;       #IMPLIED
#   cellpadding %Length;       #IMPLIED
#   >

Tables are an exception to the elimination of presentational markup in
Strict.

>    I was under the understanding that all of those attributes
>    were deprecated. I seem to remember these being found
>    as errors in the past. Is there a bug or is it now allowed?

On <img>, for example, `border' is disallowed.  See [2].

1. http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
2.
http://validator.w3.org/check?uri=http%3A%2F%2F68.2.212.230%3A8000%2Ftest.html&charset=%28detect+automatically%29&doctype=Inline

-- 
Thanasis Kinias
Web Developer, Information Technology
Graduate Student, Department of History
Arizona State University
Tempe, Arizona, U.S.A.

Ash nazg durbatulūk, ash nazg gimbatul,
Ash nazg thrakatulūk agh burzum-ishi krimpatul

Received on Thursday, 23 May 2002 13:18:11 UTC