Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Code: Select all
<cms:input type='dropdown' name='make' opt_values='Make=-' data-placement='left' />
Is there any valid way of using a dash in an attribute name?
Hi cheesypoof,

I have come across this problem before and have given a lot of thought to allowing '-' in attributes. However, I cannot help realizing that this seemingly innocuous change can have very far reaching consequences for Couch's script parser.

So, with the possibility of amendment to the parser discounted, we'll have to think of some other way.

Correct me if I am wrong but the only attributes that can have the hyphen in them are the data-* custom attributes of HTML5. Is that right?
Please let me know.
Correct, as far as I know a hyphen is only used for these HTML5 custom data attributes.

I can always insert them with JS, so if it requires any fundamental change, as you said, its not worth it.

Update: aria-* attributes also use a hyphen
3 posts Page 1 of 1