Re: [WSG] W3C validator bug?

2007-05-02 Thread Ken Robinson

Quoting Nick Fitzsimons [EMAIL PROTECTED]:


Hi,

Since I made a post whose title included double-quotes on my
WordPress-powered site, the W3C's validator has been whining at me:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nickfitz.co.uk%2F

because the page now contains double-quote-delimited title attributes
whose value, from the validator's point of view,  includes
double-quotes.

However, the actual source contains the relevant numeric character
references (#8220; and #8221;), not the quote characters themselves.


You're getting the errors report because the validator is using the  
rendered page source not the original source code. To validate the  
original source code either upload it or paste the source on the main  
page.


Ken


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] W3C validator bug?

2007-05-02 Thread Nick Fitzsimons

On 2 May 2007, at 20:33:20, Kepler Gelotte wrote:




However, the actual source contains the relevant numeric character
references (#8220; and #8221;), not the quote characters  
themselves.



Hi Nick,

I think you are looking in the wrong place in your HTML source.
You are correct that the double quote is an entity in the title,  
but the
validator is saying the error occurred on line 137 which is the  
link to the

comments section. The source there is:

... |   a
href=http://www.nickfitz.co.uk/2007/02/14/why-left-px-is- 
better-for-acc

essibility-than-display-none/#comments title=Comment on Why left:
-px; is Better For Accessibility Than display: none;12  
Comments

#187;/a/p

There you can see the double quote is no longer an entity. The  
error seems

to be in your version of Wordpress and not the validator.


DOH! Yup, I was indeed looking in the wrong place and a hunt through  
the WP code shows that the post metadata displays the post title  
without passing it through the apply-filters() function.


Thanks, Kepler; everybody else, sorry for the wild goose chase.

Regards,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***