This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24643 - Want a extension point to extend criteria to fire DOMContentLoaded
Summary: Want a extension point to extend criteria to fire DOMContentLoaded
Status: RESOLVED INVALID
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard: blocked awaiting response to comment ...
Keywords:
Depends on:
Blocks: 23526 24632
  Show dependency treegraph
 
Reported: 2014-02-13 01:27 UTC by Morrita Hajime
Modified: 2014-04-07 21:46 UTC (History)
4 users (show)

See Also:


Attachments

Description Morrita Hajime 2014-02-13 01:27:55 UTC
HTML Imports patches "the end" [1] section of the parser algorithm
so that the parser waits until all script-blocking imports are loaded[2]

It would be great if HTML exposes some extension point to add
another criteria for DOMContentLoaded event emission without monkey patches.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#the-end
[2] http://localhost:8000/spec/imports/#additions-to-tree-construction-algorithm
Comment 2 Morrita Hajime 2014-02-13 18:40:16 UTC
(In reply to Anne from comment #1)
> [2] is
> http://w3c.github.io/webcomponents/spec/imports/#additions-to-tree-
> construction-algorithm
*facepalm* Thanks for the catch.
Comment 3 Ian 'Hixie' Hickson 2014-02-14 21:47:23 UTC
Isn't import something we just want to merge into HTML in due course, like we did for <template>?
Comment 4 Morrita Hajime 2014-02-18 18:04:05 UTC
(In reply to Ian 'Hixie' Hickson from comment #3)
> Isn't import something we just want to merge into HTML in due course, like
> we did for <template>?

We're thinking about this but not decided yet. If the Imports spec stays small in coming iterations, it'd be better to merge it into HTML. We need a bit more polish before that point though.

@dglazkov might have better idea.
Comment 5 Dimitri Glazkov 2014-02-18 18:08:34 UTC
(In reply to Morrita Hajime from comment #4)
> (In reply to Ian 'Hixie' Hickson from comment #3)
> > Isn't import something we just want to merge into HTML in due course, like
> > we did for <template>?
> 
> We're thinking about this but not decided yet. If the Imports spec stays
> small in coming iterations, it'd be better to merge it into HTML. We need a
> bit more polish before that point though.
> 
> @dglazkov might have better idea.

Yes. We should totally merge it into HTML spec in due course. Imports are designed at HTML layer.
Comment 6 Ian 'Hixie' Hickson 2014-02-20 20:26:23 UTC
If we're going to merge anyway, let's not worry about hooks (just patch it for now). Do we have an ETA for when this should get merged? (Do we have multiple vendors on board?)