ajb
ajb

Reputation: 31699

Slash in rel attribute of LINK element

I've been looking into less and I notice that you use

<link rel="stylesheet/less" ...>

to use the LESS file. However, I've been looking through the HTML standards and I don't see anywhere where this format for a "rel" attribute is allowed, or if so what the definition is. If I were to use some other identifier,

<link rel="stylesheet/something" ...>

what effect would this have? Is it defined how browsers are supposed to interpret it? Or is this just something that less.js would look for and remove before the browser ever processes it? Thanks, I'd like to know how this works.

Upvotes: 0

Views: 120

Answers (1)

Ilya Streltsyn
Ilya Streltsyn

Reputation: 13556

is this just something that less.js would look for and remove before the browser ever processes it?

This seems to be true. This pattern is used by less.js (line 5372 for v. 1.4.1) to collect the LESS files to be processed and converted into real CSS.

Upvotes: 1

Related Questions