DomElementType WTemplate::domElementType() const { DomElementType type = isInline() ? DomElement_SPAN : DomElement_DIV; WContainerWidget *p = dynamic_cast<WContainerWidget *>(parentWebWidget()); if (p && p->isList()) type = DomElement_LI; return type; }
DomElementType WContainerWidget::domElementType() const { DomElementType type = isInline() ? DomElement_SPAN : DomElement_DIV; WContainerWidget *p = dynamic_cast<WContainerWidget *>(parent()); if (p && p->isList()) type = DomElement_LI; if (isList()) type = isOrderedList() ? DomElement_OL : DomElement_UL; return type; }