Skip to content

Commit e6b17ee

Browse files
authored
fix codepoints to follow infra formatting (#260)
1 parent abae748 commit e6b17ee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,32 +1137,32 @@ optional |expires|,
11371137
|partitioned|
11381138
run the following steps:
11391139

1140-
1. If |name| or |value| contain U+003B (`;`), any [=C0 control=] character except U+0009 (the horizontal tab character), or U+007F, then return failure.
1140+
1. If |name| or |value| contain U+003B (;), any [=C0 control=] character except U+0009 TAB, or U+007F DELETE, then return failure.
11411141

11421142
ISSUE(httpwg/http-extensions#1593): Note that it's up for discussion whether these character restrictions should also apply to |expires|, |domain|, |path|, and |sameSite| as well.
11431143

1144-
1. If |name|'s [=string/length=] is 0 and |value| contains U+003D (`=`), then return failure.
1144+
1. If |name|'s [=string/length=] is 0 and |value| contains U+003D (=), then return failure.
11451145
1. If |name|'s [=string/length=] is 0 and |value|'s [=string/length=] is 0, then return failure.
11461146
1. Let |encodedName| be the result of [=UTF-8 encode|UTF-8 encoding=] |name|.
11471147
1. Let |encodedValue| be the result of [=UTF-8 encode|UTF-8 encoding=] |value|.
11481148
1. If the [=byte sequence=] [=byte sequence/length=] of |encodedName| plus the [=byte sequence=] [=byte sequence/length=] of |encodedValue| is greater than the <a for=cookie>maximum name/value pair size</a>, then return failure.
11491149
1. Let |host| be |url|'s [=url/host=]
11501150
1. Let |attributes| be a new [=/list=].
11511151
1. If |domain| is not null, then run these steps:
1152-
1. If |domain| starts with U+002E (`.`), then return failure.
1152+
1. If |domain| starts with U+002E (.), then return failure.
11531153
1. If |host| does not equal |domain| and
1154-
|host| does not end with U+002E (`.`) followed by |domain|,
1154+
|host| does not end with U+002E (.) followed by |domain|,
11551155
then return failure.
11561156
1. Let |encodedDomain| be the result of [=UTF-8 encode|UTF-8 encoding=] |domain|.
11571157
1. If the [=byte sequence=] [=byte sequence/length=] of |encodedDomain| is greater than the [=cookie/maximum attribute value size=], then return failure.
11581158
1. [=list/Append=] \``Domain`\`/|encodedDomain| to |attributes|.
11591159
1. If |expires| is given, then [=list/append=] \``Expires`\`/|expires| ([=date serialized=]) to |attributes|.
11601160
1. If |path| is not null:
1161-
1. If |path| does not start with U+002F (`/`), then return failure.
1161+
1. If |path| does not start with U+002F (/), then return failure.
11621162
1. Let |encodedPath| be the result of [=UTF-8 encode|UTF-8 encoding=] |path|.
11631163
1. If the [=byte sequence=] [=byte sequence/length=] of |encodedPath| is greater than the [=cookie/maximum attribute value size=], then return failure.
11641164
1. [=list/Append=] \``Path`\`/|encodedPath| to |attributes|.
1165-
1. Otherwise, [=list/append=] \``Path`\`/ U+002F (`/`) to |attributes|.
1165+
1. Otherwise, [=list/append=] \``Path`\`/ U+002F (/) to |attributes|.
11661166
1. [=list/Append=] \``Secure`\`/\`\` to |attributes|.
11671167
1. Switch on |sameSite|:
11681168
<dl class=switch>

0 commit comments

Comments
 (0)