HTML5 autofocus attribute
Hello,
When adding the "autofocus" attribute to an input field inside a velocity formant, I get the error below, when I click on the page associated with that format:
"An error occurred: Could not transform with Script format "_internal/4.5.0/formats/page-structure/search": Error on line 13: Attribute name "autofocus" associated with an element type "input" must be followed by the ' = ' character.
You may choose to retry the operation. If the problem persists, please contact a system administrator.
The error has been logged to the system console."
Looks like it wants me to use the traditional attribute markup (attribute="value"), but "autofocus" works as is. Anyway to get around this?
Thanks,
Cristian
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Bradley Wagner on 22 Apr, 2015 06:31 PM
Thanks Christian. We currently rely on the XML-variant of HTML5 which mandates that attributes look like well-formed XML attributes.
autofocus="autofocus"
would be fine here.2 Posted by Cristian Horta on 22 Apr, 2015 06:45 PM
Thanks for the quick reply, Bradley. That worked perfectly!
3 Posted by Bradley Wagner on 22 Apr, 2015 06:47 PM
You're welcome and glad that worked for you. Have a great day.
Bradley Wagner closed this discussion on 22 Apr, 2015 06:47 PM.