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

Stop adding “noreferrer” to external links. #26968

Open
wants to merge 13 commits into
base: trunk
Choose a base branch
from
Open
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const LINK_DESTINATION_NONE = 'none';
const LINK_DESTINATION_CUSTOM = 'custom';
const LINK_DESTINATION_MEDIA = 'media';
const LINK_DESTINATION_ATTACHMENT = 'attachment';
const NEW_TAB_REL = [ 'noreferrer', 'noopener' ];
const NEW_TAB_REL = [ 'noopener' ];

const ImageURLInputUI = ( {
linkDestination,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/block/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const getMockedReusableBlock = ( id ) => ( {
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>Bold</strong> <em>Italic</em> <s>Striked</s> Superscript<sup>(1)</sup> Subscript<sub>(2)</sub> <a href="http://www.wordpress.org" target="_blank" rel="noreferrer noopener">Link</a></p>
<p><strong>Bold</strong> <em>Italic</em> <s>Striked</s> Superscript<sup>(1)</sup> Subscript<sub>(2)</sub> <a href="http://www.wordpress.org" target="_blank" rel="noopener">Link</a></p>
<!-- /wp:paragraph -->

!-- wp:heading {"level":4} -->
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/button/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const NEW_TAB_REL = 'noreferrer noopener';
export const NEW_TAB_REL = 'noopener';
export const NEW_TAB_TARGET = '_blank';
export const NOFOLLOW_REL = 'nofollow';
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'http://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual( 'noreferrer noopener' );
expect( result.rel ).toEqual( 'noopener' );
} );

it( 'should return empty rel value as undefined', () => {
Expand Down Expand Up @@ -44,9 +44,7 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'http://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual(
'rel_value noreferrer noopener nofollow'
);
expect( result.rel ).toEqual( 'rel_value noopener nofollow' );
} );

it( 'should correctly update link attributes with opensInNewTab', () => {
Expand All @@ -61,7 +59,7 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'http://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual( 'rel_value noreferrer noopener' );
expect( result.rel ).toEqual( 'rel_value noopener' );
} );

it( 'should correctly update link attributes with nofollow', () => {
Expand Down Expand Up @@ -106,23 +104,21 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'http://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual(
'rel_value nofollow noreferrer noopener'
);
expect( result.rel ).toEqual( 'rel_value nofollow noopener' );
} );

it( 'should correctly handle rel with existing new tab values and remove duplicates', () => {
const options = {
url: 'example.com',
opensInNewTab: true,
nofollow: false,
rel: 'rel_value noreferrer noopener',
rel: 'rel_value noopener',
};

const result = getUpdatedLinkAttributes( options );

expect( result.url ).toEqual( 'http://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual( 'rel_value noreferrer noopener' );
expect( result.rel ).toEqual( 'rel_value noopener' );
} );
} );
2 changes: 1 addition & 1 deletion packages/block-library/src/categories/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function CategoriesEdit( {
const { id, link, count, name } = category;
return (
<li key={ id } className={ `cat-item cat-item-${ id }` }>
<a href={ link } target="_blank" rel="noreferrer noopener">
<a href={ link } target="_blank" rel="noopener noreferrer">
{ renderCategoryName( name ) }
</a>
{ showPostCounts && ` (${ count })` }
Expand Down
6 changes: 3 additions & 3 deletions packages/block-library/src/file/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const v3 = {
target={ textLinkTarget }
rel={
textLinkTarget
? 'noreferrer noopener'
? 'noopener'
: undefined
}
>
Expand Down Expand Up @@ -248,7 +248,7 @@ const v2 = {
target={ textLinkTarget }
rel={
textLinkTarget
? 'noreferrer noopener'
? 'noopener'
: undefined
}
>
Expand Down Expand Up @@ -361,7 +361,7 @@ const v1 = {
target={ textLinkTarget }
rel={
textLinkTarget
? 'noreferrer noopener'
? 'noopener'
: undefined
}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/file/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function save( { attributes } ) {
href={ textLinkHref }
target={ textLinkTarget }
rel={
textLinkTarget ? 'noreferrer noopener' : undefined
textLinkTarget ? 'noopener' : undefined
}
>
<RichText.Content value={ fileName } />
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export const LINK_DESTINATION_NONE = 'none';
export const LINK_DESTINATION_MEDIA = 'media';
export const LINK_DESTINATION_ATTACHMENT = 'attachment';
export const LINK_DESTINATION_CUSTOM = 'custom';
export const NEW_TAB_REL = [ 'noreferrer', 'noopener' ];
export const NEW_TAB_REL = [ 'noopener' ];
export const ALLOWED_MEDIA_TYPES = [ 'image' ];
export const MEDIA_ID_NO_FEATURED_IMAGE_SET = 0;
4 changes: 2 additions & 2 deletions packages/block-library/src/image/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ describe( 'Image Block', () => {
fireEvent.press( linkTargetButton );

const expectedHtml = `<!-- wp:image {"id":1,"sizeSlug":"large","linkDestination":"custom","className":"is-style-default"} -->
<figure class="wp-block-image size-large is-style-default"><a href="https://wordpress.org" target="_blank" rel="noreferrer noopener"><img src="https://cldup.com/cXyG__fTLN.jpg" alt="" class="wp-image-1"/></a><figcaption class="wp-element-caption">Mountain</figcaption></figure>
<figure class="wp-block-image size-large is-style-default"><a href="https://wordpress.org" target="_blank" rel="noopener"><img src="https://cldup.com/cXyG__fTLN.jpg" alt="" class="wp-image-1"/></a><figcaption class="wp-element-caption">Mountain</figcaption></figure>
<!-- /wp:image -->`;
expect( getEditorHtml() ).toBe( expectedHtml );
} );
Expand All @@ -272,7 +272,7 @@ describe( 'Image Block', () => {
const initialHtml = `
<!-- wp:image {"id":1,"sizeSlug":"large","linkDestination":"custom","className":"is-style-default"} -->
<figure class="wp-block-image size-large is-style-default">
<a href="https://wordpress.org" target="_blank" rel="noreferrer noopener">
<a href="https://wordpress.org" target="_blank" rel="noopener">
<img src="https://cldup.com/cXyG__fTLN.jpg" alt="" class="wp-image-1"/>
</a>
<figcaption class="wp-element-caption">Mountain</figcaption>
Expand Down
6 changes: 3 additions & 3 deletions packages/block-library/src/latest-posts/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
<a
className="wp-block-latest-posts__read-more"
href={ post.link }
rel="noopener noreferrer"
rel="noopener"
onClick={
showRedirectionPreventedNotice
}
Expand All @@ -558,7 +558,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
{ addLinkToFeaturedImage ? (
<a
href={ post.link }
rel="noreferrer noopener"
rel="noopener"
onClick={
showRedirectionPreventedNotice
}
Expand All @@ -573,7 +573,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
<a
className="wp-block-latest-posts__post-title"
href={ post.link }
rel="noreferrer noopener"
rel="noopener"
dangerouslySetInnerHTML={
!! titleTrimmed
? {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function render_block_core_latest_posts( $attributes ) {
$trimmed_excerpt = substr( $trimmed_excerpt, 0, -11 );
$trimmed_excerpt .= sprintf(
/* translators: 1: A URL to a post, 2: Hidden accessibility text: Post title */
__( '… <a class="wp-block-latest-posts__read-more" href="%1$s" rel="noopener noreferrer">Read more<span class="screen-reader-text">: %2$s</span></a>' ),
__( '… <a class="wp-block-latest-posts__read-more" href="%1$s" rel="noopener">Read more<span class="screen-reader-text">: %2$s</span></a>' ),
esc_url( $post_link ),
esc_html( $title )
);
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/site-logo/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ const SiteLogo = ( {
<a
href={ siteIconSettingsUrl }
target="_blank"
rel="noopener noreferrer"
rel="noopener"
/>
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function phrasingContentReducer( node, doc ) {
// In jsdom-jscore, 'node.target' can be null.
// TODO: Explore fixing this by patching jsdom-jscore.
if ( node.target && node.target.toLowerCase() === '_blank' ) {
node.rel = 'noreferrer noopener';
node.rel = 'noopener';
} else {
node.removeAttribute( 'target' );
node.removeAttribute( 'rel' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe( 'phrasingContentReducer', () => {
const input =
'<a href="https://wordpress.org" target="_blank">WordPress</a>';
const output =
'<a href="https://wordpress.org" target="_blank" rel="noreferrer noopener">WordPress</a>';
'<a href="https://wordpress.org" target="_blank" rel="noopener">WordPress</a>';
expect(
deepFilterHTML( input, [ phrasingContentReducer ], {} )
).toEqual( output );
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/external-link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ function UnforwardedExternalLink(
[
...rel.split( ' ' ),
'external',
'noreferrer',
'noopener',
].filter( Boolean )
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import LinkRelIcon from './link-rel';

import styles from './style.scss';

const NEW_TAB_REL = 'noreferrer noopener';
const NEW_TAB_REL = 'noopener';
function LinkSettings( {
// Control link settings `BottomSheet` visibility
isVisible,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const MoreExamplesStory: StoryFn< typeof Navigation > = ( {
className="navigation-story__wordpress-icon"
href="https://wordpress.org/"
target="_blank"
rel="noreferrer"
rel="noopener"
>
<Icon icon={ wordpress } />
<em>Custom Content</em>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function MoreMenu() {
'https://wordpress.org/documentation/article/block-based-widgets-editor/'
) }
target="_blank"
rel="noopener noreferrer"
rel="noopener"
>
{ __( 'Help' ) }
<VisuallyHidden as="span">
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/components/more-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function MoreMenu() {
'https://wordpress.org/documentation/article/block-based-widgets-editor/'
) }
target="_blank"
rel="noopener noreferrer"
rel="noopener"
>
{ __( 'Help' ) }
<VisuallyHidden as="span">
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/media-categories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const getExternalLink = ( url, text ) =>
`<a ${ getExternalLinkAttributes( url ) }>${ text }</a>`;

const getExternalLinkAttributes = ( url ) =>
`href="${ url }" target="_blank" rel="noreferrer noopener"`;
`href="${ url }" target="_blank" rel="noopener"`;

const getOpenverseLicense = ( license, licenseVersion ) => {
let licenseName = license.trim();
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/more-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function MoreMenu() {
'https://wordpress.org/documentation/article/wordpress-block-editor/'
) }
target="_blank"
rel="noopener noreferrer"
rel="noopener"
>
{ __( 'Help' ) }
<VisuallyHidden as="span">
Expand Down
4 changes: 2 additions & 2 deletions packages/format-library/src/link/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export function createLinkFormat( {
if ( opensInNewWindow ) {
format.attributes.target = '_blank';
format.attributes.rel = format.attributes.rel
? format.attributes.rel + ' noreferrer noopener'
: 'noreferrer noopener';
? format.attributes.rel + ' noopener'
: 'noopener';
}

if ( nofollow ) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-editor/src/initial-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const textBlocks = `<!-- wp:heading -->
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>Bold</strong> <em>Italic</em> <s>Striked</s> Superscript<sup>(1)</sup> Subscript<sub>(2)</sub> <a href="http://www.wordpress.org" target="_blank" rel="noreferrer noopener">Link</a></p>
<p><strong>Bold</strong> <em>Italic</em> <s>Striked</s> Superscript<sup>(1)</sup> Subscript<sub>(2)</sub> <a href="http://www.wordpress.org" target="_blank" rel="noopener">Link</a></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"textAlign":"left","level":4,"className":"has-primary-background-color has-background","style":{"typography":{"lineHeight":"2.5"}}} -->
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/blocks/buttons.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ test.describe( 'Buttons', () => {
attributes: {
text: 'WordPress',
url: 'https://www.wordpress.org/',
rel: 'noreferrer noopener',
rel: 'noopener',
linkTarget: '_blank',
},
},
Expand Down Expand Up @@ -250,7 +250,7 @@ test.describe( 'Buttons', () => {
attributes: {
text: 'WordPress',
url: 'https://www.wordpress.org/',
rel: 'noreferrer noopener nofollow',
rel: 'noopener nofollow',
linkTarget: '_blank',
},
},
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/blocks/links.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ test.describe( 'Links', () => {
name: 'core/paragraph',
attributes: {
content:
'This is <a href="https://wordpress.org/gutenberg" target="_blank" rel="noreferrer noopener">Gutenberg</a>',
'This is <a href="https://wordpress.org/gutenberg" target="_blank" rel="noopener">Gutenberg</a>',
},
},
] );
Expand Down Expand Up @@ -811,7 +811,7 @@ test.describe( 'Links', () => {
{
name: 'core/paragraph',
attributes: {
content: `<a href="https://wordpress.org/gutenberg" target="_blank" rel="noreferrer noopener nofollow">Gutenberg</a>`,
content: `<a href="https://wordpress.org/gutenberg" target="_blank" rel="noopener nofollow">Gutenberg</a>`,
},
},
] );
Expand Down
7 changes: 2 additions & 5 deletions test/e2e/specs/editor/various/pattern-overrides.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ test.describe( 'Pattern Overrides', () => {
title: 'Button with target',
content: `<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"metadata":{"name":"${ buttonName }","bindings":{"__default":{"source":"core/pattern-overrides"}}}} -->
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="http://wp.org" target="_blank" rel="noreferrer noopener nofollow">Button</a></div>
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="http://wp.org" target="_blank" rel="noopener nofollow">Button</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->`,
status: 'publish',
Expand Down Expand Up @@ -761,10 +761,7 @@ test.describe( 'Pattern Overrides', () => {
const buttonLink = previewPage.getByRole( 'link', { name: 'Button' } );

await expect( buttonLink ).toHaveAttribute( 'target', '_blank' );
await expect( buttonLink ).toHaveAttribute(
'rel',
'noreferrer noopener'
);
await expect( buttonLink ).toHaveAttribute( 'rel', 'noopener' );

// Uncheck both checkboxes.
await editLinkButton.click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports[`Blocks raw handling pasteHandler ms-word 1`] = `"This is a title<br>&nb

exports[`Blocks raw handling pasteHandler ms-word-list 1`] = `"<a>This is a headline?</a><br>This is a text:<br>One<br>Two<br>Three<br><a>Lorem Ipsum.</a><br>&nbsp;"`;

exports[`Blocks raw handling pasteHandler ms-word-online 1`] = `"This is a <em>heading</em>&nbsp;<br>This is a <strong>paragraph </strong>with a <a href="https://w.org/" target="_blank" rel="noreferrer noopener">link</a>.&nbsp;<br>A&nbsp;<br>Bulleted&nbsp;<br>Indented&nbsp;<br>List&nbsp;<br>&nbsp;<br>One&nbsp;<br>Two&nbsp;<br>Three&nbsp;<br><br>One&nbsp;<br>Two&nbsp;<br>Three&nbsp;<br>1&nbsp;<br>2&nbsp;<br>3&nbsp;<br>I&nbsp;<br>II&nbsp;<br>III&nbsp;<br>&nbsp;<br>An image:&nbsp;<br><img src="data:image/jpeg;base64,###">&nbsp;"`;
exports[`Blocks raw handling pasteHandler ms-word-online 1`] = `"This is a <em>heading</em>&nbsp;<br>This is a <strong>paragraph </strong>with a <a href="https://w.org/" target="_blank" rel="noopener">link</a>.&nbsp;<br>A&nbsp;<br>Bulleted&nbsp;<br>Indented&nbsp;<br>List&nbsp;<br>&nbsp;<br>One&nbsp;<br>Two&nbsp;<br>Three&nbsp;<br><br>One&nbsp;<br>Two&nbsp;<br>Three&nbsp;<br>1&nbsp;<br>2&nbsp;<br>3&nbsp;<br>I&nbsp;<br>II&nbsp;<br>III&nbsp;<br>&nbsp;<br>An image:&nbsp;<br><img src="data:image/jpeg;base64,###">&nbsp;"`;

exports[`Blocks raw handling pasteHandler ms-word-styled 1`] = `"<br><strong>Lorem ipsum dolor sit amet, consectetur adipiscing elit&nbsp;</strong><br><br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque aliquet hendrerit auctor. Nam lobortis, est vel lacinia tincidunt, purus tellus vehicula ex, nec pharetra justo dui sed lorem. Nam congue laoreet massa, quis varius est tincidunt ut."`;

Expand Down Expand Up @@ -72,9 +72,9 @@ exports[`Blocks raw handling pasteHandler should strip windows data 1`] = `
<!-- /wp:paragraph -->"
`;

exports[`Blocks raw handling pasteHandler slack-paragraphs 1`] = `"test with&nbsp;<a target="_blank" href="http://w.org/" rel="noreferrer noopener">link</a><br>a new line<br><br>a new paragraph<br>another new line<br><br>another paragraph"`;
exports[`Blocks raw handling pasteHandler slack-paragraphs 1`] = `"test with&nbsp;<a target="_blank" href="http://w.org/" rel="noopener">link</a><br>a new line<br><br>a new paragraph<br>another new line<br><br>another paragraph"`;

exports[`Blocks raw handling pasteHandler slack-quote 1`] = `"Test with&nbsp;<a target="_blank" href="http://w.org/" rel="noreferrer noopener">link</a>."`;
exports[`Blocks raw handling pasteHandler slack-quote 1`] = `"Test with&nbsp;<a target="_blank" href="http://w.org/" rel="noopener">link</a>."`;

exports[`Blocks raw handling pasteHandler two-images 1`] = `"<img src="http://localhost/wp-content/uploads/2018/01/Dec-08-2017-15-12-24-17-300x137.gif" alt="" width="300" height="137"> <img src="http://localhost/wp-content/uploads/2018/01/Dec-05-2017-17-52-09-9-300x248.gif" alt="" width="300" height="248">"`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js","showDownloadButton":true} -->
<div class="wp-block-file"><a id="wp-block-file--media-_clientId_0" href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-_clientId_0">Download</a></div>
<div class="wp-block-file"><a id="wp-block-file--media-_clientId_0" href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-_clientId_0">Download</a></div>
<!-- /wp:file -->
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"showDownloadButton": true
},
"innerBlocks": [],
"innerHTML": "\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-_clientId_0\" href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-_clientId_0\">Download</a></div>\n",
"innerHTML": "\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-_clientId_0\" href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-_clientId_0\">Download</a></div>\n",
"innerContent": [
"\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-_clientId_0\" href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-_clientId_0\">Download</a></div>\n"
"\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-_clientId_0\" href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-_clientId_0\">Download</a></div>\n"
]
}
]
Loading
Loading