Download Builder missing rel and text attributes

Download Builder missing rel and text attributes

kthorngrenkthorngren Posts: 21,342Questions: 26Answers: 4,954

The Download Builder is missing the text and rel attributes for CSS. The Download builder generates this:

<link href="https://cdn.datatables.net/v/dt/dt-1.13.3/datatables.min.css"/>

But should generate this:

<link href="https://cdn.datatables.net/v/dt/dt-1.13.3/datatables.min.css rel="stylesheet" type="text/css"/>

Kevin

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Hi Kevin,

    This was a recent update - rel and type. I removed the type based on the recommendation in MDN:

    given that CSS is the only stylesheet language used on the web, not only is it possible to omit the type attribute, but is actually now recommended practice

    The rel was a mistake though - that should be there and will be in about 2 minutes :)

    Allan

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Done. Worth noting that the script tag has similarly had the type="text/javascript" removed, as that can also be inferred by the browser.

    Allan

Sign In or Register to comment.