HaxeFoundation / HaxeFoundation/haxe

js.Cookie.get throws "URI Malformed" if document.cookie is not url-encoded

Open
#6,203 2 comments 0 reactions 0 assignees View on GitHub
platform-javascript
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

see https://try.haxe.org/#F4028
```haxe
class Test {
static function main() {
js.Browser.document.cookie="test=1%";
trace('test=',js.Cookie.get('test'));
}
}
```
```
15:12:07:607 Uncaught URIError: URI malformed,https://try.haxe.org/program/F4028/run?r=0.5176229777356669,line:216
```
IMHO, `js.Cookie` should be deprecated :\

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.