[wp-trac] [WordPress Trac] #40587: Feed link markup should contain rel and type attributes
WordPress Trac
noreply at wordpress.org
Fri May 12 19:24:32 UTC 2017
#40587: Feed link markup should contain rel and type attributes
--------------------------------------+------------------
Reporter: henry.wright | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.8
Component: Feeds | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------
Comment (by stevenkword):
Replying to [comment:1 subrataemfluence]:
> Out of curiosity:
>
> What additional benefit we would have by adding those two attributes?
>
Adding "rel" and "type" attributes to anchor tags and link tags facilitate
feed auto-discovery. While the "link" tag found in the header is used to
advertise the feed related to the rendered page, adding additional links
containing these attributes allows the page to advertise additional feeds
to search engines.
For example, a home page will contain a "link" element in the "head" that
has a one-to-one relationship with main feed. However, an individual post
from that same home page could advertise comment feeds for each individual
post found on the page if these attributes were leveraged.
In another example, a widget could contain a link to a custom feed that
would not otherwise be discovered without a sitemap.
See for more information: https://www.w3.org/TR/html5/links.html#rel-
alternate
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40587#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list