Ticket #234 (closed defect: invalid)
class attribute disappears when using 2 kauri-role="messages" items
| Reported by: | bc | Owned by: | freya |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.4 |
| Component: | < Builder Logic | Version: | trunk |
| Keywords: | Cc: |
Description
When using the following HTML
<div kauri-idref="parent">
<div kauri-idref="child1">
<label kauri-role="label" class="input"/>
<input type="text" class="input" size="5"/>
<span kauri-role="messages" class="messages"/>
</div>
<div kauri-idref="child2">
<label kauri-role="label" class="input"/>
<input type="text" class="input" size="5"/>
<span kauri-role="messages" class="messages"/>
<span kauri-idref="parent" kauri-role="messages" class="messages"/>
</div>
</div>
It seems that kauri removes the class attribute from the <span kauri-idref="parent" kauri-role="messages" class="messages"/> line.
When placing this line outside the child2-div, this works fine.
Change History
comment:2 Changed 3 years ago by jgou
- Owner changed from mpo to freya
- Component changed from modules/kauri-forms to < Builder Logic
comment:4 Changed 3 years ago by freya
I've tried this with this html code(small changes):
<div kauri-idref="parent">
<div kauri-idref="child1">
<label kauri-role="label" class="input"/> <input type="text" class="input" size="5" kauri-role="input"/>
<span kauri-role="messages" class="messages"/>
</div>
<div kauri-idref="child2">
<label kauri-role="label" class="input"/> <input type="text" class="input" size="5" kauri-role="input"/>
<span kauri-role="messages" class="messages"/>
<span kauri-idref="/parent" kauri-role="messages" class="messages"/>
</div>
</div>
and fconf:
var fconf = {
"createURI": "${publicUri('service:/data/contact/')}",
type: {
members: {
'parent': {
'members' : {
'child1': 'string',
'child2': 'string'
}
}
}
}};
And I don't see any problem. Can you clarify what the problem is?
Actually, kauri doesn't remove the class attribute but seems to create the complete messages-span without the class attribute. (at least it looks like this because other parameters also disapear)