help-librejs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-librejs] Question on JavaScript Web Labels


From: Marco Bresciani
Subject: Re: [Help-librejs] Question on JavaScript Web Labels
Date: Thu, 21 Aug 2014 10:09:23 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1

Hi Nik,
well, sometimes (often) JavaScript itself produces actual content in the page and so also contains (part of) the content. So, probably, even the rel="license" is fine, but I think the data-jslicense is a very nice solution! My worry, now is that it's not backward-compatible with all currently existing free javascript site that use web labels... :) unless jslibre would match both rel="jslicense" and data-jslicense="1". Maybe an update of the fsf pages, with a note about HTML5 validation would be nice too.

I'm happy to be able to have free and standard-compliant software: no one can complain! :)


Thank you very much for your consideration,

Marco

Il 21/08/2014 03:40, Nik Nyby ha scritto:
Hi Marco,

My question is: have you considered this?

Interesting.. I didn't realize that the 'rel="jslicense"' is invalid
HTML following the HTML5 standard.

The 'license' attribute for rel is described in that link as a place to
specify a license for the content of the document, but not the
javascript code. So I think if LibreJS used the license attribute here,
that would also be going against the standard.

One solution I can think of is to use a data attribute, so the element
would look something like:

       <a href="/about/javascript" data-jslicense="1">
           JavaScript license information
       </a>

http://www.w3.org/html/wg/drafts/html/master/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes

What do you think?


Nik





--
Z-Light e Z-Pro: servizi zimbra per caselle con dominio email.it, per tutti i dettagli Clicca qui http://posta.email.it/caselle-di-posta-email-it/?utm_campaign=email_Zlight_Pro&utm_source=footer/f

Sponsor:
All Inclusive all'Hotel Union di Riccione con sconto bimbi, servizio spiaggia e 
bevande ai pasti. Chiama ora 0541602439
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=13402&d=21-8



reply via email to

[Prev in Thread] Current Thread [Next in Thread]