You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1137,32 +1137,32 @@ optional |expires|,
1137
1137
|partitioned|
1138
1138
run the following steps:
1139
1139
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.
1141
1141
1142
1142
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.
1143
1143
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.
1145
1145
1. If |name|'s [=string/length=] is 0 and |value|'s [=string/length=] is 0, then return failure.
1146
1146
1. Let |encodedName| be the result of [=UTF-8 encode|UTF-8 encoding=] |name|.
1147
1147
1. Let |encodedValue| be the result of [=UTF-8 encode|UTF-8 encoding=] |value|.
1148
1148
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.
1149
1149
1. Let |host| be |url|'s [=url/host=]
1150
1150
1. Let |attributes| be a new [=/list=].
1151
1151
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.
1153
1153
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|,
1155
1155
then return failure.
1156
1156
1. Let |encodedDomain| be the result of [=UTF-8 encode|UTF-8 encoding=] |domain|.
1157
1157
1. If the [=byte sequence=][=byte sequence/length=] of |encodedDomain| is greater than the [=cookie/maximum attribute value size=], then return failure.
1158
1158
1. [=list/Append=] \``Domain`\`/|encodedDomain| to |attributes|.
1159
1159
1. If |expires| is given, then [=list/append=] \``Expires`\`/|expires| ([=date serialized=]) to |attributes|.
1160
1160
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.
1162
1162
1. Let |encodedPath| be the result of [=UTF-8 encode|UTF-8 encoding=] |path|.
1163
1163
1. If the [=byte sequence=][=byte sequence/length=] of |encodedPath| is greater than the [=cookie/maximum attribute value size=], then return failure.
1164
1164
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|.
1166
1166
1. [=list/Append=] \``Secure`\`/\`\` to |attributes|.
0 commit comments