Textbox maxLength respects negative values.

Won’t fix Issue #7817161


Jun 7, 2016
This issue is public.
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Have an input with maxLength set to a NOT valid value. Which according to the W3C HTML5 spec is anything else than a non-negative integer. (e.g. <input type="text" maxLength="-1"/>. According to the spec this should result in no maxLength being applied.
  2. Type in the textbox
    Expected behavior: You can type whatever you want, as is the case in Chrome and Firefox.
    Actual behavior: You can’t type, maxLength is applied even though it is not valid.
    This happens in both Edge and IE11.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Grisha L.”

      Changed Status to “In code review”

      Changed Steps to Reproduce

      Changed Status from “In code review”

      Changed Title from “Textbox maxLength respects non-valid values.” to “Textbox maxLength respects negative values.”

      Changed Steps to Reproduce

      Changed Steps to Reproduce

      Changed Steps to Reproduce

      Changed Status to “Won’t fix”

      Changed Steps to Reproduce

    • Hello,

      Thank you for providing this information about the issue. Currently, we do not plan to release a fix for this problem. We are considering a solution for a future build.

      Best Wishes,

      The MS Edge Team

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

    Sign in