Skip to content

setHref is unsafe #3

@nsaunders

Description

@nsaunders

The issue is demonstrated here. Check the console to find the error. Providing an absolute URL to setHref seems to be the only way to avoid an error.

Regardless, the type of setHref should be String -> URL -> Maybe URL or similar, in order to convey the notion of failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions