- From: Dimitri Glazkov <dglazkov@google.com>
- Date: Wed, 27 Nov 2013 12:53:55 -0800
- To: Steve Souders <souders@google.com>
- Cc: Web Applications Working Group WG <public-webapps@w3.org>
Received on Wednesday, 27 November 2013 20:54:22 UTC
On Wed, Nov 27, 2013 at 12:19 PM, Steve Souders <souders@google.com> wrote: > Given that most examples of Custom Elements are visible elements in the > body and the spec doesn't indicate its example is in the HEAD, this example > will likely increase the number of websites that put HTML Import LINK tags > in the body. > > This has two downsides: > > 1. It's flagged as having errors using the HTML validator recommended by > the WhatWG <http://validator.whatwg.org/>. (Compare the validation > results for sync.php<http://html5.validator.nu/?doc=http%3A%2F%2Fstevesouders.com%2Ftests%2Flink-import%2Fsync.php>to > sync-body.php<http://html5.validator.nu/?doc=http%3A%2F%2Fstevesouders.com%2Ftests%2Flink-import%2Fsync-body.php> where > the only change is moving the LINK from HEAD to BODY.) > > 2. It's start the HTML Import download later causing rendering delays. > > I think it'd be better for the spec *not* to promote patterns with these > negative outcomes. As author, could you change the example? Or at least add > a note saying "this is in the HEAD - you don't want to put LINK tags in the > BODY"? > Sure thing: https://github.com/w3c/webcomponents/commit/0bcd356901ead044ec3590ea1f27c21c42d2d9a0 :DG<
Received on Wednesday, 27 November 2013 20:54:22 UTC