Skip to content

Commit 3e76fae

Browse files
authored
Add notes for implicit noopener and hidden=until-found (#21)
* Add note on implicit `noopener` for links set to open in a new window/tab * Add note on `hidden=until-found` for `details`/`summary` elements * Rebuild docs * Patch version bump
1 parent 3a35723 commit 3e76fae

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

docs/index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ <h2>Block-level link title</h2>
200200
He was still hurriedly thinking all this through, unable to decide to get out of the bed, when the clock struck quarter to seven. There was a cautious knock at the door near his head. "Gregor", somebody called - it was his mother - "it's quarter to seven. Didn't you want to go somewhere?
201201
</p>
202202
</a>
203+
<h4 id="notes-lists">Notes:</h4>
204+
<p>
205+
<small><a href="https://werd.io/2024/browsers-imply-noopener-for-links-in-new-tab" rel="external noopener">Browsers will imply <code translate="no">noopener</code></a> for links that open in a new window/tab.</small>
206+
</p>
203207
</div>
204208
<!-- End of #subsection-links -->
205209

@@ -488,13 +492,14 @@ <h2 id="title-interactive">Interactive</h2>
488492
<h3 id="subsection-details">Details</h3>
489493
<details>
490494
<summary>What payment options do you accept?</summary>
491-
<p>We accept cash, Visa, American Express, money orders, and personal checks.</p>
495+
<p>We accept cash, Visa, American Express, money orders, and personal checks.</p>
492496
</details>
493497

494498
<h4 id="notes-details">Notes:</h4>
495-
<p>
496-
<small>The <code translate="no">details</code> element is currently not supported by Internet Explorer. This browsers will <a rel="external noopener" href="https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/">display the content in an opened state</a>, as if the <code translate="no">open</code> attribute was applied.</small>
497-
</p>
499+
<ul>
500+
<li><small>The <code translate="no">details</code> element is currently not supported by Internet Explorer. Browsers will <a rel="external noopener" href="https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/">display the content in an opened state</a>, as if the <code translate="no">open</code> attribute was applied.</small></li>
501+
<li><small>Declaring <a href="https://developer.chrome.com/docs/css-ui/hidden-until-found" rel="external noopener"><code translate="no">hidden=until-found</code> on the parent hidden element to make it discoverable</a> by browser search.</small></li>
502+
</ul>
498503
<!-- End of #subsection-details -->
499504

500505
<!-- Start of #subsection-dialog -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "accessible-html-content-patterns",
33
"description": "A collection of the full HTML5 Doctor Element Index as well as common markup patterns for quick reference.",
44
"homepage": "https://github.com/ericwbailey/accessible-html-content-patterns",
5-
"version": "2.0.8",
5+
"version": "2.0.9",
66
"license": "MIT",
77
"author": "Eric Bailey <[email protected]> (http://ericwbailey.website/)",
88
"contributors": [

partials/section.interactive.hbs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
<h3 id="subsection-details">Details</h3>
77
<details>
88
<summary>What payment options do you accept?</summary>
9-
<p>We accept cash, Visa, American Express, money orders, and personal checks.</p>
9+
<p>We accept cash, Visa, American Express, money orders, and personal checks.</p>
1010
</details>
1111

1212
<h4 id="notes-details">Notes:</h4>
13-
<p>
14-
<small>The <code translate="no">details</code> element is currently not supported by Internet Explorer. This browsers will <a rel="external noopener" href="https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/">display the content in an opened state</a>, as if the <code translate="no">open</code> attribute was applied.</small>
15-
</p>
13+
<ul>
14+
<li><small>The <code translate="no">details</code> element is currently not supported by Internet Explorer. Browsers will <a rel="external noopener" href="https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/">display the content in an opened state</a>, as if the <code translate="no">open</code> attribute was applied.</small></li>
15+
<li><small>Declaring <a href="https://developer.chrome.com/docs/css-ui/hidden-until-found" rel="external noopener"><code translate="no">hidden=until-found</code> on the parent hidden element to make it discoverable</a> by browser search.</small></li>
16+
</ul>
1617
<!-- End of #subsection-details -->
1718

1819
<!-- Start of #subsection-dialog -->

partials/section.text-level.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
He was still hurriedly thinking all this through, unable to decide to get out of the bed, when the clock struck quarter to seven. There was a cautious knock at the door near his head. "Gregor", somebody called - it was his mother - "it's quarter to seven. Didn't you want to go somewhere?
4848
</p>
4949
</a>
50+
<h4 id="notes-lists">Notes:</h4>
51+
<p>
52+
<small><a href="https://werd.io/2024/browsers-imply-noopener-for-links-in-new-tab" rel="external noopener">Browsers will imply <code translate="no">noopener</code></a> for links that open in a new window/tab.</small>
53+
</p>
5054
</div>
5155
<!-- End of #subsection-links -->
5256

0 commit comments

Comments
 (0)