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

fix(a): don't preventDefault on click when SVGAElement has an xlink:href attribute #5897

Closed
wants to merge 1 commit into from

Commits on Jan 22, 2014

  1. fix(a): don't preventDefault on click when SVGAElement has an xlink:h…

    …ref attribute
    
    Before this change, an SVGAElement with an xlink:href attribute and no href or name attribute which
    was compiled by the angular HTML compiler would never be clickable, due to the htmlAnchorDirective
    calling event.preventDefault() due to the missing href attribute.
    
    This change corrects this behaviour by also testing the xlink:href attribute if the element in
    question is determined to be an SVG anchor tag (with the href property having type SVGAnimatedString)
    
    Closes angular#5896
    caitp committed Jan 22, 2014
    Configuration menu
    Copy the full SHA
    93fa991 View commit details
    Browse the repository at this point in the history