Thanks for the suggestion, I’ll pass it on to Marcus.
ideally, that’d be wonderful, however because we can’t assume that every theme is HTML 5 so it leaves us in an odd position.
I guess we could consider adding an HTML 5 flag somewhere in the future e.g. in wp-config you define a constant, but right now you could just override the templates/forms/bookingform/booking-fields.php file and add them yourself.
WP core does exactly that for the email field in comment forms, via current_theme_supports ( 'html5' )
(see https://core.trac.wordpress.org/browser/trunk/wp-includes/comment-template.php#L1609).
Absent that, are you concerned about browser compatibility or outputting invalid (X)HTML? The former is a non-issue.
nice, thanks for pointing that function out.
I guess in this email field case it’s not a problem to add then… I’m talking in general.
For example, we’re now making use of the data- attrbutes for AJAX pagination, but that makes ‘invalid’ xhtml so we have a flag like the one I proposed to offer alternative ways for now.