[whatwg] proposal - link relations: rel="prefetch" to be exchanged for a boolean attribute

Aryeh Gregor Simetrical+w3c at gmail.com
Mon Jul 5 13:06:12 PDT 2010


On Sun, Jul 4, 2010 at 10:41 PM, Ben Schwarz <ben.schwarz at gmail.com> wrote:
> However, as far as my understanding goes, linkrels should not contain
> multiple values; eg:
> <a rel="prefetch next">Next page</a>

They can.  See the spec:

"The types of link indicated (the relationships) are given by the
value of the rel attribute, which, if present, must have a value that
is a set of space-separated tokens."
http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-link-rel

It's allowed to have multiple types separated by spaces.  This is
common in some cases, like rel="alternate stylesheet".



More information about the whatwg mailing list