Skip to content

Commit

Permalink
Fix code point for '.' - it's U+002E not U+002D (#235)
Browse files Browse the repository at this point in the history
Thanks @annevk for noticing!
  • Loading branch information
inexorabletash authored Jul 15, 2024
1 parent dda009f commit 44e1019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,9 @@ run the following steps:
1. Let |host| be |url|'s [=url/host=]
1. Let |attributes| be a new [=/list=].
1. If |domain| is not null, then run these steps:
1. If |domain| starts with U+002D (`.`), then return failure.
1. If |domain| starts with U+002E (`.`), then return failure.
1. If |host| does not equal |domain| and
|host| does not end with U+002D (`.`) followed by |domain|,
|host| does not end with U+002E (`.`) followed by |domain|,
then return failure.
1. Let |encodedDomain| be the result of [=UTF-8 encode|UTF-8 encoding=] |domain|.
1. If the [=byte sequence=] [=byte sequence/length=] of |encodedDomain| is greater than the [=cookie/maximum attribute value size=], then return failure.
Expand Down

0 comments on commit 44e1019

Please sign in to comment.