http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252019-10-11T09:15:31ZRedmineWt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=240462019-10-11T09:15:31ZRoel Standaertroel@emweb.be
<ul></ul><p>Probably just because we never got around to it. Do note the difference between Wt's validators and the specialized HTML elements, though: Wt's validators (also) do server side validation, though in the case of email addresses you usually just want to verify them by sending a verification email.</p>
Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=240482019-10-14T08:41:33ZStefan Ruppert
<ul></ul><p>In the first place I was wondering, secondly I also want to check it on server side...</p>
<p>What about providing an WEMailInput() widget class by wt which hides the WRegExpValidator()?</p>
<p>Regards,<br><br>
Stefan</p>
Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=269022020-12-07T10:15:36ZRoel Standaertroel@emweb.be
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-1 priority-4 priority-default parent" href="/issues/7894">Feature #7894</a>: Add more HTML5 input types</i> added</li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=269132020-12-07T12:32:21ZRoel Standaertroel@emweb.be
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/26913/diff?detail_id=26142">diff</a>)</li><li><strong>Parent task</strong> set to <i>#7894</i></li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=329762021-08-02T10:37:34Zruben kindt
<ul><li><strong>Assignee</strong> set to <i>ruben kindt</i></li><li><strong>Target version</strong> set to <i>4.7.0</i></li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=405262022-03-10T09:09:20ZRoel Standaertroel@emweb.be
<ul><li><strong>Assignee</strong> deleted (<del><i>ruben kindt</i></del>)</li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=405802022-03-10T14:30:06ZRoel Standaertroel@emweb.be
<ul><li><strong>Target version</strong> changed from <i>4.7.0</i> to <i>4.8.0</i></li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=452962022-06-28T15:11:34ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>InProgress</i></li><li><strong>Assignee</strong> set to <i>Roel Standaert</i></li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=453402022-06-29T09:15:02ZRoel Standaertroel@emweb.be
<ul><li><strong>Assignee</strong> deleted (<del><i>Roel Standaert</i></del>)</li><li><strong>Target version</strong> changed from <i>4.8.0</i> to <i>future</i></li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=507922023-02-01T16:03:17ZRoel Standaertroel@emweb.be
<ul><li><strong>Assignee</strong> set to <i>Roel Standaert</i></li><li><strong>Target version</strong> changed from <i>future</i> to <i>4.10.0</i></li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=508942023-02-07T13:13:11ZRoel Standaertroel@emweb.be
<ul></ul><p>Turns out browser support is still a bit inconsistent. While all of the major browser families (Chrome, Firefox and Safari), do have support for it:</p>
<ul>
<li>Firefox does not sanitize its <code>value</code> so it will keep leading and trailing whitespace (see <a href="https://html.spec.whatwg.org/multipage/input.html#email-state-(type=email):" class="external">https://html.spec.whatwg.org/multipage/input.html#email-state-(type=email):</a> strip newlines from the value, strip leading and trailing ASCII whitespace from the value): <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=849611" class="external">https://bugzilla.mozilla.org/show_bug.cgi?id=849611</a></li>
<li>Firefox and Safari do not Punycode encode their <code>value</code>, and consider internationalized domain names invalid.</li>
</ul>
<p>Either the experience will be inconsistent between browsers, or we'd have to write a bunch of code to smooth over the differences.</p>
<p>Currently, I'm thinking we do both a <code>WEmailEdit</code> and a <code>WEmailValidator</code> with the following details:</p>
<ul>
<li>Do the sanitization ourselves even if the browser doesn't. This bit is done by the <code>WEmailEdit</code> before it is even passed to the validator.</li>
<li>The validator uses the regular expression from the WHATWG spec, even if this does not accept all theoretically possible email addresses.</li>
<li>Ignore the Punycode thing: if an internationalized domain name is used in Chrome it will be accepted, but for now it won't be in Firefox and Safari (unless the user enters them in Punycode in the first place).</li>
</ul>
Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=509952023-02-10T16:08:51ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>InProgress</i> to <i>Review</i></li><li><strong>Assignee</strong> deleted (<del><i>Roel Standaert</i></del>)</li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=511972023-02-21T09:30:35ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>Review</i> to <i>Implemented @Emweb</i></li><li><strong>Assignee</strong> set to <i>Roel Standaert</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=511982023-02-21T09:34:06ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>Implemented @Emweb</i> to <i>Resolved</i></li></ul> Wt - Feature #7279: WLineEdit add support for HTML5 email typehttp://redmine.emweb.be/issues/7279?journal_id=540462023-06-05T06:36:43ZMatthias Van Ceulebroeck
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>