Microsoft Edge should not POST data when field name is empty

Fixed, not yet flighted Issue #13475702

Details

Author
Matt B.
Created
Aug 28, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Given the following HTML form:

<!DOCTYPE html>
<html>
  <head></head>
  <body>
    <form method="POST">
      <input type="text" name="" value="This field has an empty name attribute" />
      <input type="text" name="field_name" value="This field has an name attribute of field_name" />
      <button type="submit">Submit</button>
    </form>
  </body>
</html>

Microsoft Edge will submit this form as:

: This+field+has+an+empty+name+attribute
field_name: This+field+has+an+name+attribute+of+field_name

In certain enterprise applications, sending an empty named field causes application errors where parameter validation is more strictly enforced. Additionally, other browsers like Chrome have been tested and do not exhibit this behavior; these truncate the empty named field before sending, as observed in the Content-Length request header.

I attempted to report this via Microsoft Support chat who said they would pass it to the developer for resolution (Case No. 1396124230), but it was subsequently closed, marked as [Not Resolved/ADO/chennai/windows/DIA/win 10/edge/attribute displaying/with out entering the name]. Hoping to get a little more support here.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

  • Note: W3C Section 17.13.2 regarding the submission of “Successful controls” in HTML forms states:

    A successful control must be defined within a FORM element and must have a control name.

    Source: https://www.w3.org/TR/html401/interact/forms.html#successful-controls

  • Microsoft Edge Team

    Changed Status to “Fixed, not yet flighted”

  • Any timeline when we can expect this to be released?

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

Sign in