Skip to content

Commit c4b4a2b

Browse files
authored
Editorial: remove no-op data-x="" attributes from <bdo> and <kbd>
These attributes have no effect on the output, because Wattsi does not attempt to create links here.
1 parent 09ec343 commit c4b4a2b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

source

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82402,10 +82402,9 @@ addShortcutKeyLabel(document.getElementById('c'));</code></pre>
8240282402
<div class="example">
8240382403

8240482404
<p>In the following example, the search field is given two possible access keys, "s" and "0" (in
82405-
that order). A user agent on a device with a full keyboard might pick <kbd data-x=""><kbd
82406-
data-x="">Ctrl</kbd> + <kbd data-x="">Alt</kbd> + <kbd data-x="">S</kbd></kbd> as the shortcut
82407-
key, while a user agent on a small device with just a numeric keypad might pick just the plain
82408-
unadorned key <kbd><kbd>0</kbd></kbd>:</p>
82405+
that order). A user agent on a device with a full keyboard might pick <kbd><kbd>Ctrl</kbd> +
82406+
<kbd>Alt</kbd> + <kbd>S</kbd></kbd> as the shortcut key, while a user agent on a small device
82407+
with just a numeric keypad might pick just the plain unadorned key <kbd><kbd>0</kbd></kbd>:</p>
8240982408

8241082409
<pre><code class="html">&lt;form action="/search">
8241182410
&lt;label>Search: &lt;input type="search" name="q" accesskey="s 0">&lt;/label>
@@ -139290,8 +139289,8 @@ progress { appearance: auto; }</code></pre>
139290139289
<pre><code class="js">alert('\u05DC\u05DE\u05D3 HTML \u05D4\u05D9\u05D5\u05DD!')</code></pre>
139291139290

139292139291
<p>...would always result in a message reading
139293-
"<bdo lang="" data-x="" dir=rtl>&#x05DC;&#x05DE;&#x05D3;&nbsp;LMTH&nbsp;&#x05D4;&#x05D9;&#x05D5;&#x05DD;!</bdo>"
139294-
(not "<bdo lang="" data-x="" dir=ltr>&#x05D3;&#x05DE;&#x05DC;&nbsp;HTML&nbsp;&#x05DD;&#x05D5;&#x05D9;&#x05D4;!</bdo>"),
139292+
"<bdo lang="" dir=rtl>&#x05DC;&#x05DE;&#x05D3;&nbsp;LMTH&nbsp;&#x05D4;&#x05D9;&#x05D5;&#x05DD;!</bdo>"
139293+
(not "<bdo lang="" dir=ltr>&#x05D3;&#x05DE;&#x05DC;&nbsp;HTML&nbsp;&#x05DD;&#x05D5;&#x05D9;&#x05D4;!</bdo>"),
139295139294
regardless of the language of the user agent interface or the
139296139295
direction of the page or any of its elements.</p>
139297139296

0 commit comments

Comments
 (0)