Index: html_listimpl.cpp =================================================================== RCS file: /home/kde/kdelibs/khtml/html/html_listimpl.cpp,v retrieving revision 1.20 diff -u -r1.20 html_listimpl.cpp --- html_listimpl.cpp 2001/01/21 16:06:18 1.20 +++ html_listimpl.cpp 2001/03/17 08:47:10 @@ -186,6 +186,21 @@ } } +void HTMLLIElementImpl::attach(KHTMLView *w) +{ + HTMLElementImpl::attach(w); + + if (parentNode() && parentNode()->id() == ID_OL) + { + HTMLOListElementImpl *ol = static_cast(parentNode()); + + if(ol->firstChild() && ol->firstChild() == this && m_render) + static_cast(m_render)->setValue(ol->start()); + } + +} + + // ------------------------------------------------------------------------- Index: html_listimpl.h =================================================================== RCS file: /home/kde/kdelibs/khtml/html/html_listimpl.h,v retrieving revision 1.15 diff -u -r1.15 html_listimpl.h --- html_listimpl.h 2001/02/05 11:38:13 1.15 +++ html_listimpl.h 2001/03/17 08:47:10 @@ -125,6 +125,8 @@ virtual tagStatus endTag() const { return LIEndTag; } virtual void parseAttribute(AttrImpl *attr); + + virtual void attach(KHTMLView *); }; // -------------------------------------------------------------------------