If you leave label tag blank as instructions allow, the output creates this: < class="field-label">

Comments

tim.plunkett’s picture

What is your suggestion? Prevent the value from being blank? Default fill it with div?

apmsooner’s picture

Default with div or span works for me. Thats what I've been putting in there.

rjay’s picture

Title: label tag » Malformed label tag when Label Element is empty
Version: 6.x-1.1 » 6.x-1.x-dev
Assigned: Unassigned » rjay
Status: Active » Fixed

I have made the "Label element" fields required, with appropriate default values specified. This should prevent malformed HTML tags from being output.

I have also removed text from the field descriptions that refers to leaving these fields blank, as that is no longer possible to do.

Fix committed to 6.x-dev. I will be releasing a new version of the module soon which will include these changes.

Ryan

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

geerlingguy’s picture

Ah, thanks! This was bugging me to no end, until I finally enabled theme developer and realized Semantic CCK was causing malformed HTML.