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
[links] rel and target attributes #418
Conversation
Should address issue #396
Coerce slide nodelist into an Array
Resync with master
Resync with master
Resync with master
Does the |
Yep it seems nice :) |
I think the |
Sorry i was merged fast :)) So you mean adding |
I didn't apply the rel/target to |
The only think I would be timid of, is if someone does want the opener property not set to Just concerned that it could break some user use cases. |
This would allow for any falsey value to drop the rel attribute, but it would probably break anyone depending on that communication as they will be forced to specify that prop now. But how many people use it that way?
|
Maybe it should be up to the page author to specify any values, leaving security up to them? |
So, I tested the |
So maybe that means your computedRel is perfect the way it is? |
Note I defaulted |
As it is now, if I use the conventional |
Ship it! @pi0, you weren't premature on the merge after all. |
Should |
Hmm... that's primarily an SEO concern, right? Now that we have a |
@alexsasharegan Oops, I meant https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
|
I know that article makes it sound necessary, but when I look at the MDN page for an anchor tag, that attribute doesn't seem necessary. It just wipes your url from the referrer header on the request. Not sure how that is a security risk. |
True. So we'll leave it as is for now :) |
Adds
target
andrel
attributes to all link-based components.If
target === '_blank'
andrel
isnull
then defaultrel
to'noopener'
Addresses #413