[pgsql-www] Attributes on the <script> tag

Поиск
Список
Период
Сортировка
Искать

[pgsql-www] Attributes on the <script> tag

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
Вложения:
In both XHTML and HTML5, the language attribute has been deprecated for quite
some time with the type attribute setting the type of embedded content.

For HTML5, the type attribute has further been defined to text/javascript as
the default value in the spec, so no attribute should be used for Javascript
content (per the standard: https://www.w3.org/TR/html5/scripting-1.html).  In
XHTML however, the type tag is mandatory.

The attached patches fixes the Commitfest app as well as the main website.  The
current code breaks XHTML/HTML validation.

cheers ./daniel


-- 
Sent via pgsql-www mailing list (pgsql-www@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-www

Re: [pgsql-www] Attributes on the <script> tag

От:
Magnus Hagander <magnus@hagander.net>
Дата:
On Tue, Jun 27, 2017 at 9:51 PM, Daniel Gustafsson <daniel@yesql.se> wrote:
In both XHTML and HTML5, the language attribute has been deprecated for quite
some time with the type attribute setting the type of embedded content.

For HTML5, the type attribute has further been defined to text/javascript as
the default value in the spec, so no attribute should be used for Javascript
content (per the standard: https://www.w3.org/TR/html5/scripting-1.html).  In
XHTML however, the type tag is mandatory.

The attached patches fixes the Commitfest app as well as the main website.  The
current code breaks XHTML/HTML validation.

Applied to both, thanks. 

--
FAQ