Disallowed markup in definition lists
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3373985. --> Reported by: [bnjmnm](https://www.drupal.org/user/2369194) Related to !273 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>On several pages such as admin/structure and node/add, the following error appears with a basic A11y scan </p> <pre>&lt;dl&gt; elements must only directly contain properly-ordered &lt;dt&gt; and &lt;dd&gt; groups, &lt;script&gt;, &lt;template&gt; or &lt;div&gt; elements</pre><p>In these cases, it is because there is an <code>&lt;a&gt;</code> tag in the definition list markup. These items should remain links, so we should change the markup to use something other than definition lists</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Change the <code>&lt;dl&gt;&lt;dd&gt;&lt;dt&gt;</code> to <code>&lt;div&gt;</code>s. Instead of using definitions, associate elements using <a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-details">aria-details</a>.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue