False input pattern validation with Edge and '|'

Issue #23663069 • Assigned to Bo C.

Details

Author
Pascal B.
Created
Oct 9, 2019
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
18.18362
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Description:

  • HTML5
  • input type="text"
  • very simple pattern to validate either “demo” either something looking like an email (pattern="demo|.+@.+…+")

Problem not reproduced with Firefox and Chrome (up to date)

In Edge:

  • “demo” accepted => OK
  • someone@somewhere.in.sp” accepted => OK
  • “demo@internet.site” or “demogorgon@strangers.things” not valid !!! FALSE, it’s valid ;)
    (every email beginning with ‘demo’ are marked as invalid ;)

I created a codepen: https://codepen.io/arfyfr/pen/vYYEVEv

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Zachariah L.”

      Changed Assigned To to “Bo C.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in