
Originally Posted by
John Wozniak
Is this not just 1, 2, 3 reversed including the list item itself?
As you see, the first element says, 'Third and last item entered in list'. I take it that means that it's the last LI in the markup.

Originally Posted by
John Wozniak
The code in question appeared to validate to XHTML strict so I didn't see how it could be deprecated
In the XHTML 1.0 Strict DTD, the declaration of the li element type is:
Code:
<!ELEMENT li %Flow;>
<!ATTLIST li
%attrs;
>
The attrs entity is defined as,
Code:
<!ENTITY % attrs "%coreattrs; %i18n; %events;">
which expands to
Code:
<!ENTITY % coreattrs
"id ID #IMPLIED
class CDATA #IMPLIED
style %StyleSheet; #IMPLIED
title %Text; #IMPLIED"
>
<!ENTITY % i18n
"lang %LanguageCode; #IMPLIED
xml:lang %LanguageCode; #IMPLIED
dir (ltr|rtl) #IMPLIED"
>
<!ENTITY % events
"onclick %Script; #IMPLIED
ondblclick %Script; #IMPLIED
onmousedown %Script; #IMPLIED
onmouseup %Script; #IMPLIED
onmouseover %Script; #IMPLIED
onmousemove %Script; #IMPLIED
onmouseout %Script; #IMPLIED
onkeypress %Script; #IMPLIED
onkeydown %Script; #IMPLIED
onkeyup %Script; #IMPLIED"
>
As you can see, there is no value attribute in the Strict DTD. This is the same as for HTML 4.01 Strict, of course.
Bookmarks