An HTML
label element can have a
for attribute whose value is an element ID.
http://www.w3.org/TR/html401/interact/forms.html#h-17.9.1In my Open App, cajoling is breaking the association between labels and controls because control IDs get cajoled, but the IDs in
label elements'
for attribute values do not.
For example, I start with this:
<input type="radio" name="foo" value="bar" id="bar-radio" />
<label for="bar-radio">Bar</label>
...and I get this:
<input type="radio" name="foo" value="bar" id="bar-radio-yap-box-0-6d4495d1-yap-md-XELf7L4g" />
<label for="bar-radio">Bar</label>
...so the label doesn't work.
I'm not sure whether this is a defect in Caja or Y!OS, but I hope it gets fixed.
Thanks,
Jared