What fresh hell is THIS now? - Patrick Lauke
[karlgroves] First, the HTML outline algorithm is a myth
https://www.paciellogroup.com/blog/2013/10/html5-document-outline/
Next… What Luis said. I mean, styling headings is… not rocket scuence
<h>
was a thing
<div role="button">
yeah?
<label class="boldTxt">
<strong>
, these days? <label>
is where its at
[karlgroves] Oh man, it never ends. here’s another one:
<fieldset class="fieldset">
[karlgroves] Also, this site has a breadcrumb list that has
<li><a href="/path/">Foo</a></li> <li class="empty"></li>
BECAUSE HOW DOES padding-right
EVEN WORK!?!?!?
<label class="heading" aria-level="1" aria-label="Foo">Foo</label>
[scottohara] True. But even the level solution doesn't solve that as the level still needs to be identified.
Similar logic to dynamically determine the level could also be used to update the HTML element itself
const labels = document.getElementsByTagName('label'); for (let label of labels) { label.setAttribute('role', 'heading'); }