From 523223bcfb01877d2b6506c78287d596351a2662 Mon Sep 17 00:00:00 2001 From: Kent Tamura Date: Fri, 21 Dec 2018 14:22:15 +0900 Subject: [PATCH 1/3] FormData constructor should throw if "constructing the entry list" returns null. HTML specification PR: https://github.com/whatwg/html/pull/4239 --- xhr.bs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/xhr.bs b/xhr.bs index cc7a27b..fa1dc7a 100644 --- a/xhr.bs +++ b/xhr.bs @@ -1776,8 +1776,17 @@ constructor must run these steps:
  1. Let fd be a new {{FormData}} object. -

  2. If form is given, then set fd's entry list to the - result of constructing the entry list for form. +

  3. If form is given, then:

    + +
      +
    1. Let list be the result of constructing the entry list for + form.

    2. + +
    3. If list is null, throw an "{{IllegalStateError!!exception}}" + {{DOMException}}.

    4. + +
    5. Set fd's entry list to list.

    6. +
  4. Return fd.

From d5cc90cb9a12e92d8e01ed8ac0498181d8447719 Mon Sep 17 00:00:00 2001 From: Kent Tamura Date: Fri, 21 Dec 2018 14:31:20 +0900 Subject: [PATCH 2/3] Fix incorrect DOMException name --- xhr.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xhr.bs b/xhr.bs index fa1dc7a..f5c597f 100644 --- a/xhr.bs +++ b/xhr.bs @@ -1782,7 +1782,7 @@ constructor must run these steps:
  • Let list be the result of constructing the entry list for form.

  • -
  • If list is null, throw an "{{IllegalStateError!!exception}}" +

  • If list is null, throw an "{{InvalidStateError!!exception}}" {{DOMException}}.

  • Set fd's entry list to list.

  • From b31ad455a08914167b663a21ac68c23c95f5b767 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Wed, 2 Jan 2019 11:55:09 +0100 Subject: [PATCH 3/3] nits --- xhr.bs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xhr.bs b/xhr.bs index f5c597f..4fb2637 100644 --- a/xhr.bs +++ b/xhr.bs @@ -1776,16 +1776,17 @@ constructor must run these steps:
    1. Let fd be a new {{FormData}} object. -

    2. If form is given, then:

      +
    3. +

      If form is given, then:

      1. Let list be the result of constructing the entry list for - form.

      2. + form. -
      3. If list is null, throw an "{{InvalidStateError!!exception}}" - {{DOMException}}.

      4. +
      5. If list is null, then throw an "{{InvalidStateError!!exception}}" + {{DOMException}}. -

      6. Set fd's entry list to list.

      7. +
      8. Set fd's entry list to list.

    4. Return fd.