[Webkit-unassigned] [Bug 169983] New: Input type=range does not support validation using pattern attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 22 17:37:38 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=169983

            Bug ID: 169983
           Summary: Input type=range does not support validation using
                    pattern attribute
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: justin at freshinbox.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

Input element type=range will never trigger the :invalid selector.

For example:

<style>
#foo:invalid ~ .warn{
  border:3px solid red;
}
</style>

<input type='range' id='foo' value='1' min=1 max=5 pattern="[1-2]"/><BR>
<div class="warn">Warn</div>


Setting the knob to the right will not cause the :invalid selector to fire. Basically the :invalid selector never fires.

However changing the type to 'text' and setting the value to '5' will cause the :invalid selector to fire.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170323/cb88d46c/attachment-0001.html>


More information about the webkit-unassigned mailing list