From 5c0d2ec09ec16099e5c453d088fea9b8ba0154a5 Mon Sep 17 00:00:00 2001 From: "TAMURA, Kent" Date: Fri, 27 Apr 2018 17:23:44 +0900 Subject: [PATCH] Remove _charset_ handling from application/x-www-form-urlencoded We don't need to handle _charset_ in application/x-www-form-urlencoded's serializer because it should be done in "construct the form data set" steps in the HTML Standard. Helps fixing https://github.com/whatwg/html/issues/3560. --- url.bs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/url.bs b/url.bs index d9361314..c5be53cd 100644 --- a/url.bs +++ b/url.bs @@ -2495,17 +2495,8 @@ takes a list of name-value or name-value-type tuples tuples, optional
  • Let value be tuple's value. -

  • -

    If tuple has a type, then: - -

      -
    1. If tuple's type is "hidden" and name is - "_charset_", then set value to encoding's - name. - -

    2. Otherwise, if tuple's type is "file", then set value - to value's filename. -

    +
  • If tuple has a type and it is "file", then set value to + value's filename.

  • Set value to the result of serializing the result of encoding value, using encoding. @@ -3128,6 +3119,7 @@ Jeffrey Yasskin, Joe Duarte, Joshua Bell, Jxck, +田村健人 (Kent TAMURA), Kevin Grandon, Kornel Lesiński, Larry Masinter,