P3P bug check

Post here if your topic is about CSS HTML Validator but doesn't fit in another forum.
alnico
Rank I - Novice
Posts: 15
Joined: Mon Jun 21, 2010 4:07 am

P3P bug check

Post by alnico »

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.
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: P3P bug check

Post by Albert Wiersch »

Thanks. I will look into this additional checking for a future update.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial