-
Notifications
You must be signed in to change notification settings - Fork 22.7k
Content bug: <hgroup> a valid HTML element that can be used #11153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Adding more on this issue, note that the Usage Note's banner is misleading, as it links to a W3C suggestion that is unfortunately not available since W3C is now directly linking to WHATWG (see announcement here for the details - 28th May 2019). As reported in the note, WHATWG is actually saying the opposite of W3C, which means the link says the opposite of the banner! Quite hard to get how one should use |
Sorry to be slow replying. I'm not sure what's best here and would be happy to hear more views. But it seems to me that this is not that clear cut. There seem to be three reasons we might want to discourage
At least it seems worth giving the last two as drawbacks about using this feature. I think maybe we could lose the warning at the start and the categorical language "should not be used", and just cover these in "Usage notes". |
If the reason we discourage is no browser support for outline algorithm, we should also discourage Also I don't think low support by AT is right reason to discourage the tag. The web technology is advancing day by day. At first, no new features are supported by any browsers or other relevant software (including AT). But as the time goes, the new feature becomes popular and the number of implemented software increases. Eventually, the feature becomes widely available and can be used without concern. That's how web is advancing. So I agree with @wbamberg's last line. I think we should remove the warning at top and |
The reason why it should not be used is simply because there is no consensus about its full meaning. Take a look at this issue for example whatwg/html#5002. How does it affect the internal hierarchy? Does it require the introduction of the concept of subheadings? Is it a heading by itself? All these questions come to people that take special care in learning all the aspects of the html semantics. Imagine how even less clear this is for an average developer. |
Then that correct reason should be written in the page. I didn't know there are argument about the meaning of |
To clarify, it is not supported by browsers. Assistive technology gets its information from browsers. Browsers parse the DOM, bundle it up in an accessibility tree, and pass that off to AT (though in this context it is mostly screen readers) using platform accessibility APIs. The
The Document Outline Algorithm has (finally) been removed from the WHATWG HTML spec: #7829 replace current outline algorithm with one based on heading levels |
To clarify further, "the extra outline-related a11y features" are not supported in browsers. The element itself is supported, and now its semantic purpose...
...and allowed content...
...are clearly defined, thanks to the PR @aardrian referenced. Relevant section of the spec: https://html.spec.whatwg.org/multipage/sections.html#the-hgroup-element If it'd be helpful, I can take a stab at reworking the |
In what way? Or, rather, what does |
It is supported in the sense that it is a valid HTML element. As to what it does differently for users, I don't think it has any behavioral differences. The new version of the spec seems to indicate it has semantic value and a desired usage pattern, but no explicit A11y functionality. |
It has been a valid HTML element for some time now, though it still has no browser support.
It does not. Again, unless there is some implementation I am unaware of.
It has a desired usage pattern, but it has no accessibility features and conveys no programmatic semantics. It is, as far as users and browsers are concerned, a I still agree the entry should be updated for its new definition in the WHATWG HTML specification, but the note that it does nothing should be retained. Until browsers identify an intent to implement, it is a functionally generic. |
What work are you imagining browsers need to do in order to consider I do agree that a note clarifying |
Sorry you are correct. When I said "support" I meant exposing it to users in a programmatic way. But since its new definition functionally makes it no different than a Whether or not developers choose to use it is then up to their own preferences, since it will not affect users on its own. I still believe that lack of programmatic meaning should be explicitly noted in a warning since for years the fiction of the Document Outline Algorithm has caused many a dev to think it does something for the user. |
Uh oh!
There was an error while loading. Please reload this page.
What page(s) did you find the problem on?
<hgroup>
MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup
Specific page section or heading?
What is the problem?
The main argument relies on a petitio principii: The element should not be used because AT wouldn’t support it—but AT may not support it because it’s not used. No data or rationale is provided to explain the situation or the conclusion.
Furthermore, while the article acknowledges that
<hgroup>
is part of the WHATWG’s Living Standard, it also says the W3C had removed it. As the only normative standard is the WHATWG’s version, and as it never really mattered what the W3C does in their (now deprecated) forks, this part of the argument is misleading.What did you expect to see?
Information about the
hgroup
element based on the (WHATWG) specification and augmented by data.Eventually, a side note pointing out what specific support is still seemed missing.
Did you test this? If so, how?
n/a
The text was updated successfully, but these errors were encountered: