Skip to content
This repository was archived by the owner on Jul 30, 2019. It is now read-only.

headings and sections examples are inconsistent #802

Closed
chaals opened this issue Feb 19, 2017 · 7 comments
Closed

headings and sections examples are inconsistent #802

chaals opened this issue Feb 19, 2017 · 7 comments
Assignees

Comments

@chaals
Copy link
Collaborator

chaals commented Feb 19, 2017

Hi, as far as I can tell, Examples 24 and 25 and the text around them in the headings and sections section 4.3.9 are inconsistent.

Stripped down, 24 and the normative text before and after it it says you get

<body>
  <h1>level 1 in sectioning root</h1>
  <section>
    <h2>level 2 in explicit section</h2>
      <h3>level 3 in implied section</h3>
  </section>
  <section>
    <h3>level **2** in explicit section</h3>
  </section>
</body>

Whereas example 25 suggests that isn't so.

I haven't run them through the algorithm itself yet, but unless I missed something one or other of these examples should be updated whether or not we touch the algorithm - proposed by #794

updated fixed the missing / in the last section tag in the second-last line.
updated linked to the relevant section

@chaals
Copy link
Collaborator Author

chaals commented Feb 19, 2017

I tried to walk through the algorithm on the two examples. I am not certain that I got it right - it is not only complex, but the descriptions of what to do and where to go next are pretty unclear.

As far as I can tell example 25 is inconsistent with the algorithm, and as suggested by everything before that in the section, the third heading in the first snippet of the example is level three, but in the second snippet it is level 2. In other words, the example is wrong, because the two snippets are not semantically the same.

The first snippet would be the same as a snippet like

  <section>
    <h2>level 2 in explicit section</h2>
    <section>
      <h3>level 3 in explicit section</h3>
    </section>
    <section>
      <h3>level 3 in explicit section</h3>
    </section>
  </section>

@stevefaulkner
Copy link
Contributor

@chaals i used the https://validator.w3.org/nu/ to check the outlines (it handily provides a representation for both H1-h6 and the theoretical outline)
You are indeed correct, the second example needs to be changed as per

 <section>
    <h2>level 2 in explicit section</h2>
    <section>
      <h3>level 3 in explicit section</h3>
    </section>
    <section>
      <h3>level 3 in explicit section</h3>
    </section>
  </section>

will fix.

@stevefaulkner
Copy link
Contributor

@stevefaulkner
Copy link
Contributor

@chaals if you are satisfied please close.

@chaals
Copy link
Collaborator Author

chaals commented Feb 20, 2017

Commented - you got the opening and closing tags reversed.
☕️ ;)

@stevefaulkner
Copy link
Contributor

@chaals doh! fixed now, i hope...

@chaals
Copy link
Collaborator Author

chaals commented Feb 20, 2017

Fixed in 5e022ad

@chaals chaals closed this as completed Feb 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants