Issue
I was just wondering what valid characters can be included as the value for a <option>
i.e. is this valid?
<select>
<option value='0dbl,2sgl'>0 Double and 2 Singles</option>
<option value='1dbl,0sgl'>1 Double and 0 Singles</option>
</select>
Solution
Yes, that's perfectly valid. See the specification: it says the content of value
should be CDATA
, in which pretty much everything is valid, with the following caveats:
- Replace character entities with characters,
- Ignore line feeds,
- Replace each carriage return or tab with a single space.
Answered By - lonesomeday
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.