-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Quote and Pullquote are not valid HTML #20606
Comments
See previously #2647 |
Hey @sanderteirlynck and @mtias Is this issue still valid? |
Hi @paaljoachim Apologies for the late reply! I'm assuming this issue is still valid since the Quote and Pullquote block both still use the |
I believe this is also part of the refactor in #25892 |
Note, For the quote block, this was not resolved in #25892 (The Quote Block refactor that was introduced in Gutenberg 13.8; the quote block still uses cite. |
Just bumping this for visibility. Still an issue in the latest RC (6.3-beta4). This is the default output of the Quote block:
And this is the default output of the Pullquote block:
Still invalid HTML, but also an accessibility concern (this now gets flagged on manual audits by various independent accessibility companies and experts). Based on the same living standard link above, we should expect this as the output of both (perhaps with a class to distinguish visually, therefor eliminating the need for two blocks? #11610 ):
|
We shouldn't include figure tags on blockquotes or fig captions. It's unnecessarily verbose for screen reader users. Adrian Roselli has a post about how screen readers announce various blockquotes that is worth referencing. |
Great article. Also brings into question whom we trust when it comes to HTML validity and the nuances of semantic tags. @amberhinds based on his advice and the merge to MDN, it would suggest that the solution in WP would be to replace the Would you agree with that solution? |
@michaelbourne, yes, I think that's what I would go with. |
Describe the bug
Quote and Pullquote use the HTML5
<cite>
element to indicate who made the quote, as illustrated by the previews. The HTML Living Standard says this is not allowed.To reproduce
Steps to reproduce the behavior:
Expected behavior
Quote and Pullquote are valid HTML. This can be achieved by replacing the
<cite>
element with another HTML element, for instance the<footer>
element as illustrated by the Mozilla Developer Network.The text was updated successfully, but these errors were encountered: