IntraWeb 15 release notes mention: "Templates: Attributes are allowed inside template control tags". This means that the following works great:
{%IWEDIT1 placeholder="something"%}
This becomes the following (styles removed for readability):
<input CLASS="IWEDIT1CSS" ID="IWEDIT1" NAME="IWEDIT1" placeholder="Actie-ID" TabIndex="1" TYPE="TEXT" VALUE="IWEdit1">
However, if I add the following attribute inside a template control tag:
{%IWEDIT1 data-dom="test" placeholder="something"%}
Then the resulting HTML tag becomes as follows:
<input CLASS="IWEDIT1CSS" data="" ID="IWEDIT1" NAME="IWEDIT1" TabIndex="1" TYPE="TEXT" VALUE="IWEdit1">
It looks like everything after the - in data is removed, including the placeholder tag.
Is there a way to include attributes that contain a - character??
Thanks in advance!
Groetjes, Bob Swart
{%IWEDIT1 placeholder="something"%}
This becomes the following (styles removed for readability):
<input CLASS="IWEDIT1CSS" ID="IWEDIT1" NAME="IWEDIT1" placeholder="Actie-ID" TabIndex="1" TYPE="TEXT" VALUE="IWEdit1">
However, if I add the following attribute inside a template control tag:
{%IWEDIT1 data-dom="test" placeholder="something"%}
Then the resulting HTML tag becomes as follows:
<input CLASS="IWEDIT1CSS" data="" ID="IWEDIT1" NAME="IWEDIT1" TabIndex="1" TYPE="TEXT" VALUE="IWEdit1">
It looks like everything after the - in data is removed, including the placeholder tag.
Is there a way to include attributes that contain a - character??
Thanks in advance!
Groetjes, Bob Swart