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 25745 - Wattsi: Have <dfn> popups be statically embedded
Summary: Wattsi: Have <dfn> popups be statically embedded
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard: tools
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-16 21:28 UTC by Ian 'Hixie' Hickson
Modified: 2017-05-02 19:01 UTC (History)
4 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2014-05-16 21:28:37 UTC
Would be good to have the magic popups on <dfn> elements be precomputed. This would allow for:
 - the links to work on the multipage spec
 - the IDs to be real IDs, not generated by the dfn popup logic
 - the links to the mentions to themselves use the embedded content logic that
   gets added for bug 25744
Comment 1 Michael[tm] Smith 2014-05-17 08:26:01 UTC
(In reply to Ian 'Hixie' Hickson from comment #0)
> Would be good to have the magic popups on <dfn> elements be precomputed.
> This would allow for:
>  - the links to work on the multipage spec
>  - the IDs to be real IDs, not generated by the dfn popup logic
>  - the links to the mentions to themselves use the embedded content logic
> that gets added for bug 25744

Big +1 to adding this.

At one time I wrote a patch for the spec splitter that made the dfn links work in the multipage output. But the performance of it sucks, and anyway the splitter is the wrong place to do it. Maybe it should be done in anolis instead? Or in some separate single-purpose script, to keep things simple.

Anyway, if you're not in a big hurry on this I can take a shot at writing something up for it in python -- either as a patch to anolis or as as separate single-purpose script. Lemme know.

Of course if you end up getting to it before I can, I won't cry.
Comment 2 Ian 'Hixie' Hickson 2014-05-19 20:02:38 UTC
I'll be doing this as part of my new pipeline.
Comment 3 Michael[tm] Smith 2017-05-02 05:24:03 UTC
(In reply to Ian 'Hixie' Hickson from comment #0)
> Would be good to have the magic popups on <dfn> elements be precomputed.
> This would allow for:
>  - the links to work on the multipage spec
>  - the IDs to be real IDs, not generated by the dfn popup logic
>  - the links to the mentions to themselves use the embedded content logic
> that
>    gets added for bug 25744

I wonder if we can move this issue to resolved=wontfix now that:

- we do already now have IDs that are real IDs, not generated by the dfn popup logic
- with https://github.com/whatwg/wattsi/pull/46 we will have wattsi generating the necessary data to make dfn links work across the multipage spec
- the mechanism in https://github.com/whatwg/wattsi/pull/46 can be further refined to make wattsi also generate the data needed to resolve bug 25744

In other words, we can solve the problems above without needing to statically embed the dfn popups as this bug proposes. And it seems our current sense is that we would rather not embed the popups anyway—to avoid shifting the bandwidth etc costs over to users. Given that many (or possibly most) users don’t click on many dfn’s, it makes more sense to load each popup/data on demand only when a user clicks one.
Comment 4 Domenic Denicola 2017-05-02 19:01:34 UTC
I agree; let's consolidate this into the work to make dfn.js work on multipage, but not via statically-embedded popups.