-
Notifications
You must be signed in to change notification settings - Fork 548
What to do about the document outline? #33
Comments
This may be nonsense but I give it a shot: |
sure,but that does not help with the question of what the spec should say about the outline and how it defines the effect of sectioning elements. |
More to the point, writing such a script seems like a lot of work, and highly prone to going wrong. If browsers are not going to fix the longstanding bugs, maybe we should stop telling people to behave as though they will. In the case of heading levels, there is a serious problem that the browsers effectively report one level of heading to the user, through a default styling, and a different level to accessibility APIs. Likewise, the styling trick is pretty fragile - any author style seems to override it immediately. I'm personally leaning toward the idea that we should just drop the sectioning thing, since it seems browsers are not really prepared to implement it. |
Unless there is an implimentation of the outline algorithm that honours heading structuring, I think the advice in the HTML spec should recommend the use of ranked headings. @stevefaulkner noted (elsewhere) that ePub3 uses the outline algorithm to produce a table of contents [1]. It doesn't seem to influence heading structure AFAIK though. |
An apparent implementation as a Firefox extension - I haven't tested this yet |
there are also bookmarklets and the nu markup checker implements Regards SteveF On 1 February 2016 at 16:54, chaals notifications@github.com wrote:
|
So I wonder if any of those don't work with the old |
@stevefaulkner @chaals would any of those tools break if we updated the spec to recommend explicitly ranked headings instead of |
On 1 February 2016 at 17:23, Léonie Watson notifications@github.com wrote:
no Regards SteveF |
Here's another example, this time for Chrome (not thoroughly tested, but it works somehow) |
A JavaScript implementation, also offering a bookmarklet (screenshot): https://github.com/hoyois/html5outliner |
I have made an initial pass at rewriting the article element definition (as a discussion starter), this is part of the much larger task of recasting the outlining stuff. |
Having removed the harmful advice to use nested h1 elements everywhere, is there more we should do about this issue? It seems there is implementation that is probably useful. Are there other harmful things somewhere? |
@chaals I am going to review the changes and will bring up any thoughts I have next week at F2F as well as on issue. |
If I recall, one of the main benefits of the current spec is that it allows for easier syndication of parts of a document, correct? An Are there any other main use cases for using a top level heading inside sections that would be a reason for keeping the spec as written? |
The bit that was actually breaking things was the |
The outline algorithm is backward compatible, so works fine with just h1 to h6 |
Yeah, the comment was about implementations - is there any significant deployed legacy that somehow failed to implement the I don't know of any, and haven't heard of any - although I know there is a real use case for being able to go beyond 6 levels, which was what made me wonder… |
@stevefaulkner can we close this? |
@chaals, yes |
As many people have been lead to believe it actually effects the semantics of headings, when in practice it does not, currently HTML has a warning for web developers about the document outline algorithm as its semantics are not implemented in UA's and visual styling of headings based on their section nesting is only partially implemented.
In a related issue discussion, I started, based on the lack of developer advice in the whatwg spec whatwg/html#83 there has been talk of removing/modifying the algorithm and how sectioning elements (in particular section and article elements) effect the semantics of headings.
We need to look more into the issues with the algorithm and decide the future of how document outlines are expressed in HTML and how the current semantics of sectioning elements could/should be changed.
related:
https://www.w3.org/wiki/HTML/Usage/Headings/h1only
The text was updated successfully, but these errors were encountered: