Element ids should not contain colons
-------------------------------------
Key: TAPESTRY-2377
URL: https://issues.apache.org/jira/browse/TAPESTRY-2377
Project: Tapestry
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.0.12
Environment: java 1.5.0_13, osx 10.5.2
Reporter: Julian Wood
If I make a form and put a form/label combo in it:
<form t:type="Form">
<div>
<label t:type="Label" t:for="username" />
<input t:type="TextField" t:id="username" type="text" maxlength="15"/>
</div>
</form>
It is rendered out like this:
<label for="username" id="username:label">Username:</label>
<input id="username" maxlength="15" name="username" type="text">
username:label is not a legal identifier, and can't be targeted with a css
rule. Eg.
#username:label {
color: red;
}
is illegal - well it is a pseudo-class, like a:hover.
[EMAIL PROTECTED]&/\=!%^ are all out (I tried them all). Perhaps a dash or two
is best. Underscore is okay if we don't care about NN4.
http://www.eskimo.com/~bloo/indexdot/css/syntax/selectors/spechtml.htm
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]