First can I start off by saying I absolutely love all that you have done with Slimsy and feel that it is a great addition to the Umbraco toolbox for responsive development and design.
I have just noticed however when I run my site through the W3C validator, some of the code that Slimsy produces isn't quite valid when it comes to the HTML5 spec.
I'm sorry to be really picky (and to be honest I'm probably one of the only people who still cares about their pages being 100% validator compliant) but where Slimsy outputs an & symbol it should really be using "& amp;" so that it is fully HTML compliant.
At the moment my page is giving me a tonne of validator errors purely because of this.
Slimsy shouldn't be causing those issues (you're not the only one that cares about validation) for example this is a site also using Slimsy which is valid.
However it's actually Razor that does the encoding, could you post a code example of how you are rendering one of these images that isn't correctly encoding?
Slimsy and the HTML5 validator
Hi,
First can I start off by saying I absolutely love all that you have done with Slimsy and feel that it is a great addition to the Umbraco toolbox for responsive development and design.
I have just noticed however when I run my site through the W3C validator, some of the code that Slimsy produces isn't quite valid when it comes to the HTML5 spec.
I'm sorry to be really picky (and to be honest I'm probably one of the only people who still cares about their pages being 100% validator compliant) but where Slimsy outputs an & symbol it should really be using "& amp;" so that it is fully HTML compliant.
At the moment my page is giving me a tonne of validator errors purely because of this.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.axumtech.com%2Fwhy-choose-axum&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices#result
Thanks Jason, glad you like the package.
Slimsy shouldn't be causing those issues (you're not the only one that cares about validation) for example this is a site also using Slimsy which is valid.
However it's actually Razor that does the encoding, could you post a code example of how you are rendering one of these images that isn't correctly encoding?
Jeavon
Hi Jeavon,
Thanks for your quick response. Here is a code example of how I am rendering the images in question:
Cheers,
Jason
Ok, so because you are using @Html.Raw you are missing out on the standard Html Encoding that Razor takes care of.
I think you should be able to use HttpUtility to do the same job.
e.g.
is working on a reply...