Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$location causes JS errors on Chrome in conjunction with SVG #8118

@eekboom

Description

@eekboom

SVGElementInstances are created when you use "use" element in SVG to wrap the original element.
An SVGElementInstance has no "nodeName" property, which causes a click handler in the $locationProvider to fail.
SSCCE at http://plnkr.co/edit/HpiObOlF2MESe9OiRncW

See also disconnectme/disconnect#228

Other browsers seem to use the "use" element itself in event handling, so that the error does not happen there.
I am not really sure what the spec-compliant handling would be here, but it should be easy to work around in angular itself (for example using "correspondingUseElement" property).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions