WICG / cookie-store

Asynchronous access to cookies from JavaScript
https://wicg.github.io/cookie-store/
Apache License 2.0
143 stars 35 forks source link

Fix up encoding definitions/references #218

Closed inexorabletash closed 1 year ago

inexorabletash commented 1 year ago

Following dd2ddc7 a definition for "encode" was unneeded - relevant places invoked "UTF-8 encode" directly. This is removed.

Based on guidance from @domenic, having a specific "decode" definition made the spec harder to read; replace it with direct references to running "UTF-8 decode without BOM".

Finally, turn an orphaned paragraph into a NOTE about cookie attributes being byte sequences, since it was wortk keeping.

(Also, silence a Bikeshed warning by replacing |variable| references in domintro sections with .)

Resolves #202


Preview | Diff

inexorabletash commented 1 year ago

@ayuishii and @annevk can you take a look?

The text here would change when #189 is tackled, i.e. we'd reference "...or fail" and define failure behavior.