Re: LINK only in HEAD?

On Wed, Nov 27, 2013 at 11:35 AM, Steve Souders <souders@google.com> wrote:

> According to the HTML 4 spec<http://www.w3.org/TR/html401/struct/links.html#h-12.1.3>LINK tags must appear in HEAD:
>
> *The LINK element may only appear in the head of a document.*
>
>
We probably need something more modern as a reference here :)

Here's the HTML Living Standard:
http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-link-element

"If the rel attribute is used, the element is restricted to the head
element."

This is part of a non-normative content (a note), so I think we're off the
hook here :)

The HTML Imports
spec<http://www.w3.org/TR/custom-elements/#enqueuing-and-invoking-callbacks>contains
the following example:
>
>> <me-first></me-first>
>> <link rel="import" href="import.html">
>> <me-third></me-third>
>
>
> Is the intention of this example that me-first and me-third occur in the
> HEAD?
>

Sure. Nothing precludes the author from using custom elements in HEAD.

:DG<

Received on Wednesday, 27 November 2013 19:44:45 UTC