[wp-trac] [WordPress Trac] #28188: Make Natively-Outputted .widget_rss CSS Selector HTML5-Appropriate

WordPress Trac noreply at wordpress.org
Fri May 9 05:57:32 UTC 2014


#28188: Make Natively-Outputted .widget_rss CSS Selector HTML5-Appropriate
-------------------------+-----------------------------
 Reporter:  EMG          |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Widgets      |    Version:  3.9
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 In regards to the natively outputted RSS Widget entitled `.widget_rss`,
 the post Author's name is currently outputted as wrapped in a `<cite>`
 tag.

 An example of a natively outputted RSS feed block looks something like
 this for reference:

 `<a class='rsswidget' href='http://blah.net/2014/04/14/blahblah/'>Example
 RSSed Post</a> <span class="rss-date">April 14, 2014</span> <div
 class="rssSummary">This is the space where the RSSed information appears.
 […]</div> <cite>Author</cite>`

 Please note that the author of the RSSed post is being natively outputted
 as wrapped in the `<cite>` tag.

 As per #27944 (ocean90's comment in particular) which references #24522
 (re: proper way to tag comment authors), the natively outputted CSS
 selectors for the `.widget_rss` widget probably ought to be wrapped in
 something like: `<span class="comment-author">` as opposed to `<cite>`.

 Reiterating what ocean90 said: The `<cite>` tag is supposed to be used for
 a cited block of text (like a citation) rather than used to tag the/an
 author.

 Additionally, changing the `<cite>` to `<span class="comment-author">`
 will provide additional sitewide code uniformity (there's a word or phrase
 I am looking for and I can't remember it!) for a natively/vanilla
 outputted WordPress site (and especially if using a default WordPress
 theme) re: how author names are wrapped in tags.

 Thanks!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28188>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list