Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Am trying to stop .net rendering downlevel markup to the w3c validator service by adding the following to my BrowserCaps.config
<case match="W3C_Validator*"> TagWriter = System.Web.UI.HtmlTextWriter W3CDomVersion = 1.0</case>
But it doesn't seem to have any effect.
Does anyone know if this should work?
Anyone?
I found this http://umbraco.org/blog/2007/12/4/dec-4-how-to-get-the-w3c-validator-to-recognize-your-pages
but not sure if it still holds.
I found my own solution
Assuming asp.net 2.0
Add an App_Browsers folder to your web root. In that folder place a file called w3cvalidator.browser with the following contents:
<browsers> <!-- Browser capability file for the w3c validator sample UA: "W3C_Validator/1.305.2.148 libwww-perl/5.803" --> <browser id="w3cValidator" parentID="default"> <identification> <userAgent match="^W3C_Validator" /> </identification> <capture> <userAgent match="^W3C_Validator/(?'version'(?'major'\d+)(?'minor'\.\d+)\w*).*" /> </capture> <capabilities> <capability name="browser" value="w3cValidator" /> <capability name="majorversion" value="${major}" /> <capability name="minorversion" value="${minor}" /> <capability name="version" value="${version}" /> <capability name="w3cdomversion" value="1.0" /> <capability name="xml" value="true" /> <capability name="tagWriter" value="System.Web.UI.HtmlTextWriter" /> </capabilities> </browser></browsers>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
is BrowserCaps.config loaded/used by Umbraco?
Hi,
Am trying to stop .net rendering downlevel markup to the w3c validator service by adding the following to my BrowserCaps.config
But it doesn't seem to have any effect.
Does anyone know if this should work?
Anyone?
I found this http://umbraco.org/blog/2007/12/4/dec-4-how-to-get-the-w3c-validator-to-recognize-your-pages
but not sure if it still holds.
I found my own solution
Assuming asp.net 2.0
Add an App_Browsers folder to your web root. In that folder place a file called w3cvalidator.browser with the following contents:
<browsers>
<!--
Browser capability file for the w3c validator
sample UA: "W3C_Validator/1.305.2.148 libwww-perl/5.803"
-->
<browser id="w3cValidator" parentID="default">
<identification>
<userAgent match="^W3C_Validator" />
</identification>
<capture>
<userAgent match="^W3C_Validator/(?'version'(?'major'\d+)(?'minor'\.\d+)\w*).*" />
</capture>
<capabilities>
<capability name="browser" value="w3cValidator" />
<capability name="majorversion" value="${major}" />
<capability name="minorversion" value="${minor}" />
<capability name="version" value="${version}" />
<capability name="w3cdomversion" value="1.0" />
<capability name="xml" value="true" />
<capability name="tagWriter" value="System.Web.UI.HtmlTextWriter" />
</capabilities>
</browser>
</browsers>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.