Use of div for labels causes validation errors. See #8843.

This commit is contained in:
Richard Heck 2017-10-16 21:37:36 -04:00
parent c2f88695ba
commit b8206a0832

View File

@ -1506,13 +1506,8 @@ string const & Layout::htmlitemattr() const
string const & Layout::htmllabeltag() const
{
if (htmllabeltag_.empty()) {
if (labeltype != LABEL_ABOVE &&
labeltype != LABEL_CENTERED)
if (htmllabeltag_.empty())
htmllabeltag_ = "span";
else
htmllabeltag_ = "div";
}
return htmllabeltag_;
}