Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anchors with no href fail AnchorsWithNoRelOpener Audit #1233

Closed
ebidel opened this issue Dec 22, 2016 · 2 comments
Closed

Anchors with no href fail AnchorsWithNoRelOpener Audit #1233

ebidel opened this issue Dec 22, 2016 · 2 comments
Assignees

Comments

@ebidel
Copy link
Contributor

ebidel commented Dec 22, 2016

Testing https://www.seamless.com/, we get:

screen shot 2016-12-21 at 4 14 34 pm

@brendankenny giving this to you since you already started investigating.

@brendankenny
Copy link
Member

The underlying issue here is new URL(''), which isn't valid, which happens when you use an anchor tag without an href attribute.

The issue is that many web apps use anchors with no href for app purposes (e.g. the seamless example has <a class="app-download-appsStore-link" ng-click="::$ctrl.goToUrl($ctrl.appleUrl)" target="_blank">...</a>). However angular, at least, still honors the target attribute (and window.opener is available in the new tab). If it honors rel as well we should probably still warn on these links, so we shouldn't just strip them out in the audit.

@wardpeet
Copy link
Collaborator

issue got fixed on master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants