Making WordPress.org

Opened 4 years ago

Last modified 3 years ago

#5144 new defect (bug)

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

Reported by: audrasjb's profile 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 4 years ago.
Declare HTML5 scripts and styles support for better compliance with HTML5 standards

Download all attachments as: .zip

Change History (3)

@audrasjb
4 years ago

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

#1 @audrasjb
4 years ago

  • Keywords has-patch added; needs-patch removed

#2 @TobiasBg
3 years 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.