HTML 5 is here and breaking old hacks we should have never done!
Today I had an old form bubble up from the past and bite me. We were using "custom" attributes on form fields called required for use with javascript. Which of course we shouldn't do.
We were made aware that the form wasn't submitting in Safari. I immediately check the form in Chrome and Firefox; it worked in Firefox and not in Chrome. What do Chrome and Safari have in common? Webkit and HTML 5 actually being added in.
You'd think this wouldn't be a problem since all the fields marked as required are required, however, we jacked that up. HTML says that boolean attributes should be blank, or really anything else. Most people use the name of the attribute.
1 2 |
checked="checked" required="required" |
We used required="true" and required="false", making all fields required. Hooray me and hackery!