HTML5 required input

Jump to: navigation, search
Edited by author.
Last edit: 21:05, 21 October 2011

The captcha input should use the new HTML5 attribute required="required". It's pretty safe cos non-supportive browsers ignore it. But it is much more user friendly (e.g. password inputs stay filled). QuestyCaptcha.class.php:

                return "<p><label for=\"wpCaptchaWord\">{$captcha['question']}</label> " .
                        Xml::element( 'input', array(
                                'name' => 'wpCaptchaWord',
                                'id'   => 'wpCaptchaWord',
                                'required'   => 'required',
                                'tabindex' => 1 ) ) . // tab in before the edit textarea
                        "</p>\n" .
Subfader19:14, 20 October 2011
Edited by another user.
Last edit: 19:26, 20 October 2011

HTML 5 is half-baked and nothing more than a draft. I am against it. --Bachsau 19:26, 20 October 2011 (UTC)

94.219.230.18519:24, 20 October 2011

Too bad. MediaWiki already supports HTML5. Is that your only argument against this proposed change?

Reach Out to the Truth19:46, 20 October 2011
 

What the heck? Read again. Non supportive browsers ignore unknown attributes. So you would prefer waiting 5-10 years while all major browsers support HTML5 alredy? LOL

Subfader19:57, 20 October 2011
 

We had to blacklist form submitting last year because WebKit was failing validation without telling you why. See bugzilla:23769.

Nonetheless, it seems interesting to add for the future. Added in r100422.

Platonides14:59, 21 October 2011
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox