[wp-trac] [WordPress Trac] #30579: wp_enqueue_style in footer
WordPress Trac
noreply at wordpress.org
Sun Dec 14 15:01:09 UTC 2014
#30579: wp_enqueue_style in footer
----------------------------------------+------------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 2.6
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses: performance
----------------------------------------+------------------------------
Comment (by kevdotbadger):
The HTML5 spec says that <link> IS allowed in the body, but only if it
contains both the 'rel' and 'property' attributes.
This line fails the HTML5 validator test (when placed in the body)
{{{<link type="text/css" rel="stylesheet" href="style.css" />}}}
However, this line passes
{{{<link type="text/css" rel="stylesheet" property="stylesheet"
href="style.css" />}}}
HOWEVER, HTML4 doesn't have the `property` attribute. So I agree with the
OP's proposal, using the more traditional <style> tag.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30579#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list