HTML validation using referer URI
Posted: Wed Dec 08, 2021 6:50 pm
The W3 validator, at https://validator.w3.org/ which is the official worldwide standard to validate your HTML code has a feature which allows you to put a link on your web page so others visiting your web page can click on this link to validate it.
Problem is that the default link code they give you works with a referrer URI. The link points to the validator, but does NOT contain the URL (web address) of the page to be checked. Instead the validator page at validator.w3.org checks something called the Referrer URI which is the URL of the page that contained the link. Since the page that contained the link was your web page that you want w3 to test, everything is awesome right? No, now many web browsers do not send the full referrer URI, only the hostname. So for example (during the time of this post) when you try to validate the Site Map at www.deltafoxdesign.com/sitemap, w3 instead validates the homepage www.deltafoxdesign.com/
Whether or not the full referrer URI is sent to the webpage that the link links to is dependent on the browser. Under Windows 10 Firefox, Chrome and Edge only send the hostname part (ie www.deltafoxdesign.com), Internet Explorer (a basically obsolete browser) in Windows 10 sends the whole URL.
Not sending the whole URL does create more privacy on the web. However it also makes it harder for analytics. If you are really strict about privacy you may think of analytics as like a swear word. However owners of websites do like to monitor how visitors got to there web site and to the different web pages that pointed them there.
It is likely that this problem can be worked around by including the full URL to your web page in the w3 validator link when you put the link on your web pages.
Problem is that the default link code they give you works with a referrer URI. The link points to the validator, but does NOT contain the URL (web address) of the page to be checked. Instead the validator page at validator.w3.org checks something called the Referrer URI which is the URL of the page that contained the link. Since the page that contained the link was your web page that you want w3 to test, everything is awesome right? No, now many web browsers do not send the full referrer URI, only the hostname. So for example (during the time of this post) when you try to validate the Site Map at www.deltafoxdesign.com/sitemap, w3 instead validates the homepage www.deltafoxdesign.com/
Whether or not the full referrer URI is sent to the webpage that the link links to is dependent on the browser. Under Windows 10 Firefox, Chrome and Edge only send the hostname part (ie www.deltafoxdesign.com), Internet Explorer (a basically obsolete browser) in Windows 10 sends the whole URL.
Not sending the whole URL does create more privacy on the web. However it also makes it harder for analytics. If you are really strict about privacy you may think of analytics as like a swear word. However owners of websites do like to monitor how visitors got to there web site and to the different web pages that pointed them there.
It is likely that this problem can be worked around by including the full URL to your web page in the w3 validator link when you put the link on your web pages.