[Sugar-devel] sugar-web: css lint

Manuel Quiñones manuq at laptop.org
Thu Sep 5 12:54:02 EDT 2013


2013/9/5 Daniel Narvaez <dwnarvaez at gmail.com>:
> On 5 September 2013 03:38, Manuel Quiñones <manuq at laptop.org> wrote:
>>
>> 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:
>> >>
>> >> https://github.com/mozilla/html5-lint
>> >>
>> >> 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
>> >> templates:
>> >>
>> >> http://validator.w3.org/#validate_by_input+with_options
>> >
>> > 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.
>
>
> I think we can wait a bit and see if it is worth it... we might never have
> much html in sugar-web.

Yeah, I agree.

-- 
.. manuq ..


More information about the Sugar-devel mailing list