tersus icon indicating copy to clipboard operation
tersus copied to clipboard

Attribute value quoting is inconsistent

Open splorp opened this issue 11 years ago • 0 comments

There are several attributes generated by the WordPress core that are using single quotes, rather than double quotes.

This bugs me to no end.

Yes, I realize that both single and double quotes are allowed in HTML (and the WordPress Coding Standards), but this is a matter of keeping things consistent.

I’ve already fixed several of these cases, applying the tersus_double_down() fliter to the the following WordPress functions and template tags:

get_avatar get_archives_link get_comment_author_link previous_image_link next_image_link wp_list_categories wp_tag_cloud

Below are a few more chunks of code that still need fixing.

Elements inserted by wp_head:

<link rel='canonical' href='#' /> <link rel='shortlink' href='#' /> <link rel='prev' title='x' href='#' /> <link rel='next title='x' href='#' /> <script type='text/javascript' src='/wp-includes/js/comment-reply.min.js'></script>

Comment reply links:

<a href='/?replytocom=n#respond' onclick='return addComment.moveForm()'>Reply</a>

Hidden comment form fields:

<input type='hidden' name='comment_post_ID' value='n' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' />

splorp avatar Feb 08 '14 22:02 splorp