WordPress.org

Making WordPress.org

Opened 20 months ago

Last modified 7 months ago

#5144 new defect

[all websites] Declare HTML5 scripts and styles support for better compliance with W3C validator

Reported by: audrasjb Owned by:
Milestone: Priority: normal
Component: General Keywords: has-patch
Cc:

Description

Hi,

Given almost all WordPress themes are written in HTML5, they should declare HTML5 support for styles and scripts to avoid using type attributes in styles and scripts. Otherwise, W3C validator will throw a warning because of the type element.

This option was introduced in WordPress 5.3. For reference, see:

Attachments (1)

5144.diff (4.1 KB) - added by audrasjb 20 months ago.
Declare HTML5 scripts and styles support for better compliance with HTML5 standards

Download all attachments as: .zip

Change History (3)

@audrasjb
20 months ago

Declare HTML5 scripts and styles support for better compliance with HTML5 standards

#1 @audrasjb
20 months ago

  • Keywords has-patch added; needs-patch removed

#2 @TobiasBg
7 months ago

This looks good to me. Is there anything on wordpress.org not using HTML 5?
Would modern browsers (now that IE11 is dropped) even care?

Note: See TracTickets for help on using tickets.