Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #37586
Closed
Open
Issue created Dec 05, 2022 by Administrator@rootContributor3 of 3 checklist items completed3/3 checklist items

thead > td is not formatted as a header

Created by: andrewnicols

Prerequisites

  • I have searched for duplicate or closed issues
  • I have validated any HTML to avoid common problems
  • I have read the contributing guidelines

Describe the issue

The thead tag should cause all child content to be treated as a header, however if you write a table with a <td> within the <thead> tag, it is treated differently to a <th> tag.

This topic is discussed within the W3C HTML specification in this issue where it is declared that any content of a thead should be treated as a header. The wording of the specification is amended to:

The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table.

https://html.spec.whatwg.org/#the-thead-element

The apparent intent (from the bug above) is that all content of a <thead> tag should act as, and appear as, a header.

At present this is not the behaviour and a thead > td appears differently to a thead > th.

Reduced test cases

https://codepen.io/andrewnicols/pen/vYrvXBX

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

Chrome, Safari, Firefox, Microsoft Edge

What version of Bootstrap are you using?

4.6.0; 5.2.x

Assignee
Assign to
Time tracking