prokhor-ozornin / w3c-validator-net

.NET library to perform validation of CSS/(X)HTML documents, using WWW Consortium's (http://www.w3.org) web services.
https://www.nuget.org/packages/W3CValidator
GNU General Public License v3.0
1 stars 0 forks source link

W3CValidator.NET is a .NET library to perform validation of CSS/(X)HTML documents, using WWW Consortium's web services.

NuGet package : https://www.nuget.org/packages/W3CValidator

It utilizes the following W3C services :

  1. Markup Validation Service

  2. CSS Validation Service


Support

This project needs your support for further developments ! Please consider donating.

Image


W3C CSS Validation Service

ICssValidationResult result = Validator.Validate.Css().Document("body { color : white }");

ICssValidationResult result = Validator.Validate.Css().Url("http://www.w3.org/2008/site/css/minimum", request => request.Language("ru").Medium(CssMedium.All).Profile(CssProfile.Css2).Warnings(WarningsLevel.Important));

W3C Markup Validation Service

IMarkupValidationResult result = Validator.Validate.Markup().Url("http://wwww.w3.org");

IMarkupValidationResult result = Validator.Validate.Markup().Url("http://wwww.w3.org", request => request.Encoding(Encoding.UTF32));