Skip to content

Conversation

@JLHwung
Copy link
Collaborator

@JLHwung JLHwung commented Aug 24, 2017

see https://developers.google.com/web/tools/lighthouse/audits/noopener

Thank you for creating a pull request to contribute to Hexo code! Before you open the request please review the following guidelines and tips to help it be more easily integrated:

  • [-] Add test cases for the changes.
  • Passed the CI test.

@coveralls
Copy link

coveralls commented Aug 24, 2017

Coverage Status

Coverage remained the same at 97.154% when pulling 98b8102 on use-noopener into 6c0fbd0 on master.

@coveralls
Copy link

coveralls commented Aug 24, 2017

Coverage Status

Coverage remained the same at 97.154% when pulling ad92e3d on use-noopener into 6c0fbd0 on master.

@coveralls
Copy link

coveralls commented Aug 25, 2017

Coverage Status

Coverage remained the same at 97.154% when pulling 6489630 on use-noopener into 5a47abc on master.

@JLHwung
Copy link
Collaborator Author

JLHwung commented Aug 26, 2017

Any suggestions? cc @NoahDragon

if (attrs.external) {
attrs.target = '_blank';
attrs.rel = 'external';
attrs.rel = 'noopener';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about external noopener? I'm not sure if noopener already covers the external?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go, I will rework on this PR.

it('external (boolean)', () => {
linkTo('http://hexo.io/', 'Hexo', true)
.should.eql('<a href="http://hexo.io/" title="Hexo" target="_blank" rel="external">Hexo</a>');
.should.eql('<a href="http://hexo.io/" title="Hexo" target="_blank" rel="noopener">Hexo</a>');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@NoahDragon
Copy link
Member

Sorry, I added review several days ago but forgot to submit them.

@coveralls
Copy link

coveralls commented Aug 29, 2017

Coverage Status

Coverage remained the same at 97.154% when pulling 01190b0 on use-noopener into 5a47abc on master.

@JLHwung
Copy link
Collaborator Author

JLHwung commented Aug 29, 2017

LGTM, @NoahDragon I suggest we publish a new patch version with latest hexo-log or bunyan-related dependencies.

@NoahDragon
Copy link
Member

@JLHwung Agree.

@NoahDragon NoahDragon merged commit dfb5a4b into master Aug 29, 2017
@NoahDragon NoahDragon deleted the use-noopener branch August 29, 2017 19:50
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

Successfully merging this pull request may close these issues.

4 participants