Skip to content

window.getSelection().toString() returns [object Selection] not the selected text #319

Description

@felixscheinost

According to MDN window.getSelection().toString() is supposed to return the text the user selected.

I am using this by checking that the selection is empty that the user is actually clicking and not selecting text.

The problem is that when running in HtmlUnit this method is always returning [object Selection] and not the selected text.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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