Skip to content

[css-contain-1] Use proper HTML in markup example #1058

@thierryk

Description

@thierryk

In section 2 (Strong Containment), the markup example is as follow:

<body>
  <aside class='sidebar'>...</aside>
  <article class='messages'>
    <section class='message'>
      Lol, check out this dog: images.example.com/jsK3jkl
    </section>
    <section class='message'>
      I had a ham sandwich today. #goodtimes
    </section>
    <section class='message'>
      I have political opinions that you need to hear!
    </section></article>
</body>

I do not think this is a proper use of <section> (as sections "should" have headings). Looking at the repetition of the class message I'd suggest using a ul inside article with li replacing section; but other constructs could work as well—it is just that I don't think section is the right element here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions