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.

regression: ngHref -  #6273

Closed
Closed

Description

@petebacondarwin

This commit (f3de5b6) caused an old e2e test to fail (See angular/dgeni#44).

See https://github.com/angular/angular.js/blob/master/src/ng/directive/booleanAttrs.js#L72

<a id="link-4" href="" name="xx" ng-click="value = 4">anchor</a> (link, don't reload)<br />
        it('should execute ng-click but not reload when href empty string and name specified', function() {
          element(by.id('link-4')).click();
          expect(element(by.model('value')).getAttribute('value')).toEqual('4');
          expect(element(by.id('link-4')).getAttribute('href')).toBe('');
        });

Previously, if you had a name but no href it would still prevent the click from propagating. The performance refactor commit, referenced above, changed the a directive so that if there is neither href or name then the click will propagate and so clicking the link would cause the page to reload.

We need to decide if this previous functionality is important and if so modify the a directive accordingly and potentially re-activate the protractor test that was broken. If not, then we should just remove the failing protractor test altogether.

FAO: @IgorMinar and @kseamon

Activity

  1. added this to the milestone on Feb 22, 2014
  2. self-assigned this
    on Mar 17, 2014
  3. modified the milestones: 1.3.0-beta.3, on Mar 17, 2014
  4. 34 remaining items

  5. modified the milestones: , on Dec 17, 2014
  6. added 2 commits that reference this issue on Jan 27, 2015
    34e56c0
    f230810
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions