[wp-trac] [WordPress Trac] #61183: Make all themes fully support HTML5 by default.
WordPress Trac
noreply at wordpress.org
Sat May 25 17:04:53 UTC 2024
#61183: Make all themes fully support HTML5 by default.
--------------------------------------------+-----------------------------
Reporter: dmsnell | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests close | Focuses:
--------------------------------------------+-----------------------------
Changes (by sabernhardt):
* keywords: has-patch has-unit-tests => has-patch has-unit-tests close
* version: trunk =>
* component: General => Themes
Comment:
The comment form with HTML5 support has both `email` and `url` type input
fields; some themes (including Twenty Eleven) may only have styles for the
`text` type in the `#respond` container.
Using `add_theme_support()` and `current_theme_supports` can help to avoid
breaking themes and sites that were designed for older markup. In the
`html5` array:
- 'comment-form' supports `email` and `url` input types and adds the
`novalidate` attribute on the comment form
- 'comment-list' determines whether to use the
`Walker_Comment::html5_comment()` markup with `article` and `footer`
- 'search-form' creates markup including the `placeholder` attribute,
unless the theme has a `searchform.php` template
- 'gallery' and 'caption' allow outputting `figure` and `figcaption`
elements for those two shortcodes
- 'script' and 'style' add the `type` to those two elements
- 'navigation-widgets' allows outputting `nav` elements in several classic
widgets (#48170)
#54731 added the `html5` theme supports (except 'navigation-widgets') for
all block themes by default, and the newer elements and attributes should
be expected with those. However, changing the markup is not expected for
classic themes.
The pull request has many changes within the admin, but this ticket needs
to remain focused on themes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61183#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list