Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit edabda7

Browse files
v0.4.0 (#2)
1 parent 8af6f7e commit edabda7

File tree

2 files changed

+65
-49
lines changed

2 files changed

+65
-49
lines changed

CHANGELOG.md

Lines changed: 58 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -10,84 +10,95 @@ The format is based on [Keep a Changelog][kac], and this project adheres to
1010

1111
## Unreleased
1212

13+
## 0.4.0
14+
15+
### Changed
16+
17+
- Submission of `application/x-www-form-urlencoded` and `text/plain` actions now
18+
require [converting the entry list to name-value pairs][el2nvp] before running
19+
the corresponding serializer. This realigns with the HTML standard and affects
20+
newlines in fields' `name` and value.
21+
22+
[el2nvp]: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#convert-to-a-list-of-name-value-pairs
23+
1324
## 0.3.0 - 2021-06-17
1425

1526
### Added
1627

17-
* Action submission specification
18-
* Action constraint validation specification
19-
* How to treat unrecognized field `type`s
20-
* Constraints for fields
21-
* How to apply the `pattern` property
22-
* Common `step` property for fields
23-
* Extensions for link objects: `hreflang` and `media`
24-
* `FileList` as an acceptable type for a `file` field's `files` property
28+
- Action submission specification
29+
- Action constraint validation specification
30+
- How to treat unrecognized field `type`s
31+
- Constraints for fields
32+
- How to apply the `pattern` property
33+
- Common `step` property for fields
34+
- Extensions for link objects: `hreflang` and `media`
35+
- `FileList` as an acceptable type for a `file` field's `files` property
2536

2637
### Changed
2738

28-
* Clarified "type" as "data type" in recommendation of fields' `value`'s type
29-
* Several field extension and common property descriptions to align with
39+
- Clarified "type" as "data type" in recommendation of fields' `value`'s type
40+
- Several field extension and common property descriptions to align with
3041
constraint validation
31-
* Clarified adaptation of the HTML specification
42+
- Clarified adaptation of the HTML specification
3243

3344
### Fixed
3445

35-
* Typo in "`checkbox` Fields" section
46+
- Typo in "`checkbox` Fields" section
3647

3748
### Removed
3849

39-
* Column for specifying valid `value` formats; this is covered by constraint
50+
- Column for specifying valid `value` formats; this is covered by constraint
4051
validation
41-
* Mentions of HTML's checkedness concept
42-
* Unnecessary use of the term "element" in the Placeholder Label Option section
52+
- Mentions of HTML's checkedness concept
53+
- Unnecessary use of the term "element" in the Placeholder Label Option section
4354

4455
## 0.2.0 - 2021-01-04
4556

4657
### Added
4758

48-
* Recommendation for field `value`'s types and format based on field's `type`
49-
* Defined how `null` or undefined field `value`s should be treated
50-
* Defined the `checked` property for `checkbox` fields
51-
* Defined a default value for `checkbox` fields' `value` property
52-
* Defined the `size` property for `select` fields
53-
* Defined semantics for placeholder label options in `select` fields
54-
* Defined the `accept` property for `files` fields
55-
* Defined semantics for `textarea` fields
56-
* Defined more common properties based on common HTML input attributes
57-
* `dirname`
58-
* `max`
59-
* `maxlength`
60-
* `min`
61-
* `minlength`
62-
* `placeholder`
63-
* `readonly`
64-
* Added table summarizing when common properties apply to a field
59+
- Recommendation for field `value`'s types and format based on field's `type`
60+
- Defined how `null` or undefined field `value`s should be treated
61+
- Defined the `checked` property for `checkbox` fields
62+
- Defined a default value for `checkbox` fields' `value` property
63+
- Defined the `size` property for `select` fields
64+
- Defined semantics for placeholder label options in `select` fields
65+
- Defined the `accept` property for `files` fields
66+
- Defined semantics for `textarea` fields
67+
- Defined more common properties based on common HTML input attributes
68+
- `dirname`
69+
- `max`
70+
- `maxlength`
71+
- `min`
72+
- `minlength`
73+
- `placeholder`
74+
- `readonly`
75+
- Added table summarizing when common properties apply to a field
6576

6677
### Changed
6778

68-
* Moved mention of `files` property for consistency
69-
* Renamed the section "HTML Input Attributes" to "Common Properties"
70-
* Aligned type requirement for `multiple` `email` fields' `value` property with
79+
- Moved mention of `files` property for consistency
80+
- Renamed the section "HTML Input Attributes" to "Common Properties"
81+
- Aligned type requirement for `multiple` `email` fields' `value` property with
7182
the HTML specification ([#2])
72-
* Clarified when `disabled` and `required` properties apply to fields
73-
* Clarified what `disabled` means for the field's `value`
74-
* Clarified requirements for `required` fields
83+
- Clarified when `disabled` and `required` properties apply to fields
84+
- Clarified what `disabled` means for the field's `value`
85+
- Clarified requirements for `required` fields
7586

7687
[#2]: https://github.com/dillonredding/siren-extensions/issues/2
7788

7889
### Removed
7990

80-
* Removed mentions of the HTML version
91+
- Removed mentions of the HTML version
8192

8293
## 0.1.0 - 2020-12-04
8394

8495
### Added
8596

86-
* Defined the `group` extension for `radio` fields
87-
* Defined semantics for `select` fields
88-
* Defined field properties corresponding to common HTML input attributes:
89-
* `disabled`
90-
* `files`
91-
* `multiple`
92-
* `pattern`
93-
* `required`
97+
- Defined the `group` extension for `radio` fields
98+
- Defined semantics for `select` fields
99+
- Defined field properties corresponding to common HTML input attributes:
100+
- `disabled`
101+
- `files`
102+
- `multiple`
103+
- `pattern`
104+
- `required`

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,11 @@ steps:
185185
1. Otherwise:
186186
1. Switch on `action.type` (case-insensitive):
187187
- `"application/x-www-form-urlencoded"`, `null`, or undefined
188+
1. Let `pairs` be the result of
189+
[converting to a list of name-value pairs][el2nvp] with `entryList`.
188190
1. Let `body` be the result of running the
189191
[`application/x-www-form-urlencoded` serializer][axwfus] with
190-
`entryList`.
192+
`pairs`.
191193
1. Let `mimeType` be `"application/x-www-form-urlencoded"`.
192194
- `"multipart/form-data"`
193195
1. Let `body` be the result of running the
@@ -197,14 +199,17 @@ steps:
197199
`"boundary="`, and the `multipart/form-data` boundary string
198200
generated by the [`multipart/form-data` encoding algorithm][mfdea].
199201
- `"text/plain"`
202+
1. Let `pairs` be the result of
203+
[converting to a list of name-value pairs][el2nvp] with `entryList`.
200204
1. Let `body` be the result of running the
201-
[`text/plain` encoding algorithm][tpea] with `entryList`.
205+
[`text/plain` encoding algorithm][tpea] with `pairs`.
202206
1. Let `mimeType` be `"text/plain"`.
203207
- Otherwise, fail.
204208
1. Make an HTTP request where `url` is the request target, `method` is the
205209
request method, `mimeType` is the `Content-Type` header, and `body` is the
206210
message payload.
207211

212+
[el2nvp]: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#convert-to-a-list-of-name-value-pairs
208213
[rur]: https://html.spec.whatwg.org/multipage/urls-and-fetching.html#resulting-url-record
209214
[pau]: https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url
210215
[axwfus]: https://url.spec.whatwg.org/#concept-urlencoded-serializer

0 commit comments

Comments
 (0)