Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute value quoting is inconsistent #58

Open
splorp opened this issue Feb 8, 2014 · 0 comments
Open

Attribute value quoting is inconsistent #58

splorp opened this issue Feb 8, 2014 · 0 comments

Comments

@splorp
Copy link
Owner

splorp commented Feb 8, 2014

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' />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant