]> git.ardis.lu - sheets-db/commitdiff
Explicitly set <th> scope
authorArdis Lu <ardisglu@gmail.com>
Wed, 14 Feb 2024 05:29:49 +0000 (21:29 -0800)
committerArdis Lu <ardisglu@gmail.com>
Wed, 14 Feb 2024 05:29:49 +0000 (21:29 -0800)
It's implied from <thead> but better to be explicit for accessibility

demo/index.html

index be2a64766c0838eb25901f1c8301a147ec084807..8383a5f98d74530bb6e56987347830b2d15c1c24 100644 (file)
@@ -245,6 +245,7 @@ LIMIT 25</textarea>
       const headerTr = document.createElement('tr');
       for (let header of columns) {
         const th = document.createElement('th');
+        th.setAttribute('scope', 'col');
         th.textContent = header;
         headerTr.insertAdjacentElement('beforeend', th);
       }
This page took 0.037662 seconds and 4 git commands to generate.