P3P bug check

Post here if your topic is about CSE HTML Validator but doesn't fit in another forum.

P3P bug check

Postby alnico » Mon Jul 05, 2010 5:24 am

I am trying to get my site P3P compatible (even though there are some who say its useless!) and I discovered a bug that HTML Validator should check for: (I discovered the bug when debugging my P3P code on the W3C site).

The CP (compact policy) value must be enclosed in double quotes. Which means that:
Code: Select all
<meta http-equiv="P3P" content="policyref='http://www.example.com/w3c/p3p.xml', CP='NID DSP NOI COR'" />

is incorrect despite it validating.

It should render as:
Code: Select all
<meta http-equiv="P3P" content='policyref="http://www.example.com/w3c/p3p.xml", CP="NID DSP NOI COR"' />


Also, an additional check should be carried out for the following:
Code: Select all
<meta http-equiv="P3P" content='policyref="http://www.example.com/w3c/p3p.xml", CP="NID DSP NOI COR"' />
<link rel="P3Pv1" href="/w3c/p3p.xml" />


If any one of the two are present, then a TIP should be displayed requesting the other tag be present. For ideal functioning of the P3P, both meta tags should be present.
alnico
Rank I - Novice
Rank I - Novice
 
Posts: 15
Joined: Mon Jun 21, 2010 4:07 am

Re: P3P bug check

Postby Albert Wiersch » Mon Jul 05, 2010 10:09 am

Thanks. I will look into this additional checking for a future update.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to Other CSE HTML Validator

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron