[Sugar-devel] sugar-web: css lint

Daniel Narvaez dwnarvaez at gmail.com
Thu Sep 5 11:56:45 EDT 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130905/f7c4b980/attachment.html>


More information about the Sugar-devel mailing list