[Sugar-devel] sugar-web: css lint
manuq at laptop.org
Wed Sep 4 21:38:43 EDT 2013
2013/9/4 Andrew McMillan <andrew at morphoss.com>:
> On Wed, 2013-09-04 at 11:18 -0300, Manuel Quiñones wrote:
>> No luck in html lint.
>> There is the main validator: http://validator.nu/ . It helped me to
>> find a bug in the index.html of sugar-web-template. I have sent a PR
>> with the fix.
>> And there is html5-lint, a Mozilla instance of the main validator:
>> But unfortunately those don't work with a fragment of HTML, so we can't
>> use them for templates.
>> Then there is the W3C online validator, which has an option for HTML
>> fragments, but not for doctype html5, and throws errors in Mustache
> Hi Manuel,
> Would it be possible to simply present a small service somewhere which
> wrapped a fragment with the right HTML5 pieces and submitted it to one
> of the full-document validators?
Certainly, Andrew. We could:
1. compile the templates with sample data
2. wrap the result inside the <body> tag of a standard html5 file
3. validate it
I wonder if its worth the effort.
.. manuq ..
More information about the Sugar-devel