Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Declare HTML5 scripts and styles support for better compliance with W3C validator#101

Open
audrasjb wants to merge 1 commit into
WordPress:masterfrom
audrasjb:fix/html5-script-style
Open

Declare HTML5 scripts and styles support for better compliance with W3C validator#101
audrasjb wants to merge 1 commit into
WordPress:masterfrom
audrasjb:fix/html5-script-style

Conversation

@audrasjb
Copy link
Copy Markdown

Hi,

Given this theme is written in HTML5, it should declare HTML5 support for styles and script 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:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant