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

jsx-no-target-blank: Target only anchor elements #793

Merged
merged 1 commit into from
Sep 12, 2016
Merged

jsx-no-target-blank: Target only anchor elements #793

merged 1 commit into from
Sep 12, 2016

Conversation

aduth
Copy link
Contributor

@aduth aduth commented Aug 30, 2016

This pull request seeks to resolve lint errors which are raised when the jsx-no-target-blank rule is enabled when target="_blank" is applied to anything other than an anchor element. The documentation for this rule clearly states that <p target="_blank"></p> is not considered an error, but adding this missing test case reveals that the rule applies to all elements.

We observed this in Automattic/wp-calypso#7680 where we have custom components which handle the incoming target prop and apply the rel as necessary through custom render logic.

@yannickcr
Copy link
Member

Merged, thanks!

@aduth aduth deleted the update/no-target-blank-a-only branch September 13, 2016 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants