Skip to content

'cookie' property in Document/HTMLDocument prototypes is different with real browser #805

@RuralHunter

Description

@RuralHunter
Object.getOwnPropertyDescriptor(Document.prototype, "cookie");
Object.getOwnPropertyDescriptor(HTMLDocument.prototype, "cookie");

In htmlunit, I got :

{"get":"function cookie() {...}","enumerable":true,"configurable":true}
{"get":"function cookie() {...}","set":"function cookie() {...}","enumerable":true,"configurable":true}

In real browser(Chrome/Firefox), I got:

{"get":"function cookie() {...}","set":"function cookie() {...}","enumerable":true,"configurable":true}
undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions