[wp-trac] [WordPress Trac] #61183: Make all themes fully support HTML5 by default.

WordPress Trac noreply at wordpress.org
Thu May 9 23:33:02 UTC 2024


#61183: Make all themes fully support HTML5 by default.
-------------------------+--------------------
 Reporter:  dmsnell      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  6.6
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+--------------------
 See #54731.
 See #59883.

 This ticket proposes that `add_theme_support()` return `true` by default
 for HTML5 support. The reality of the web and WordPress today is that
 //only// HTML5 is supported, regardless of the `DOCTYPE` and regardless of
 what a theme may infer. Unless a theme sends an actual HTTP `Content-type:
 application/xml+xhtml` header or the page's path ends in `.xml` then a
 browser will not interpret it as HTML4 or XHTML.

 Therefore it is not only safe to default support to HTML5 (because that is
 what is truly happening in a browser), but it will help improve the
 reliability of HTML that WordPress generates, as it will not incorrectly
 generate HTML that will be corrupted in a browser based off of outdated
 expectations of parsing rules.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61183>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list