Skip to content

Get Element Property should run internal JSON clone algorithm on result before returning it #1412

Open
@andreastt

Description

@andreastt

DOM properties could be complex objects, even elements. One can return properties using Get Element Property, but we don’t sanitise/serialise the data before returning it across the wire.

I’m assuming this is an omission and that the intended use case for Get Element Property is to allow returning any type that WebDriver supports serialising. The fix is simply to run the internal JSON clone algorithm on result before returning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions