Skip to content

Allow Bikeshed specs to more easily autolink to HTML #998

Closed

Description

@domenic

We've been trying to honor Bikeshed's rules on an ad-hoc basis, but I'd like to take a better crack at it.

One obvious thing is to stop using noexport on our <dfn>s since it's not necessary. But otherwise, I'd like to just get started by canvasing specs that reference HTML a lot and finding their Bikeshed link defaults sections and seeing how we can help them eliminate those in favor of more automatic autolinking.

Activity

  1. tabatkins commented on Apr 5, 2016

    @tabatkins
    Contributor

    👍

    Here's the list from Service Worker:

    spec: html; type: dfn
        text: about:blank
        text: active document
        text: allowed to show a popup
        text: api base url
        text: api url character encoding
        text: application cache
        text: auxiliary browsing context
        text: browsing context
        text: discard a document
        text: effective script origin
        text: entry settings object
        text: environment settings object
        text: event handler
        text: event handler event type
        text: event handler idl attributes
        text: event loop
        text: exceptions enabled
        text: focusing steps
        text: global object
        text: incumbent settings object
        text: in parallel
        text: kill a worker
        text: list of active timers
        text: navigate
        text: nested browsing context
        text: neutered
        text: parent browsing context
        text: queue a task
        text: replacement enabled
        text: responsible browsing context
        text: responsible document
        text: responsible event loop
        text: same origin
        text: script
        text: settings object
        text: source browsing context
        text: structured clone
        text: task sources
        text: tasks
        text: the worker's documents
        text: top-level browsing context
        text: transfer a transferable object
        text: trusted event
        text: unicode serialisation of an origin
        text: unload a document
        text: user interaction task source
        text: utf-8 decode
    

    Here's DOM:

    urlPrefix: https://html.spec.whatwg.org/multipage/
        type: dfn
            urlPrefix: webappapis.html
                text: report the exception
                text: queue a microtask
                text: compound microtask
                text: execute a compound microtask subtask
            urlPrefix: syntax.html
                text: html parser
                text: html parsing; url: #html-parser
            urlPrefix: browsers.html
                text: concept-document-bc
                text: concept-document-window
                text: unit of related similar-origin browsing contexts
                text: origin
                text: effective script origin
                text: origin alias; url: #concept-origin-alias
                text: Unicode serialization of an origin; url: #unicode-serialisation-of-an-origin
            urlPrefix: infrastructure.html
                text: in parallel
    

    Here's FileAPI:

    urlPrefix: https://html.spec.whatwg.org/multipage/
        urlPrefix: webappapis.html
            type: dfn
                text: event loop
                text: event handler content attribute
                text: event handler event type
                text: incumbent settings object
                text: task; url: #concept-task
                text: task source
                text: global script clean-up jobs list
                text: queue a task
        urlPrefix: infrastructure.html
            type: dfn
                text: structured clone
                text: collect a sequence of characters
                text: converting a string to ASCII lowercase; url: #converted-to-ascii-lowercase
        urlPrefix: browsers.html
            type: dfn
                text: unloading document cleanup steps
                text: effective script origin
                text: origin
                text: same origin
        urlPrefix: dom.html
            type: dfn
                text: document; url: #dom
    

    I'm sure @mikewest and @jyasskin probably have some lists of HTML anchors they've used in their specs, too.

  2. jyasskin commented on Apr 5, 2016

    @jyasskin
    Member

    Web Bluetooth:

    spec: html
        type: dfn
            text: allowed to show a popup
            text: browsing context
            text: environment settings object
            text: event handler idl attribute
            text: global object
            text: in parallel
            text: incumbent settings object
            text: perform a microtask checkpoint
            text: queue a task
            text: relevant settings object
            text: responsible event loop
    
  3. annevk commented on Apr 6, 2016

    @annevk
    Member

    So I guess one way to address the problem with "origin" is to mark HTML's definition of "origin" as for="origin" and do something similar for the associated terms. Perhaps even give them data-lt="" attributes with shorter names.

  4. tabatkins commented on Apr 6, 2016

    @tabatkins
    Contributor

    HTML's "origin" is actually probably not for anything at all; all the other terms are. (They're for url, request, and http.) HTML's origin is just... an origin. Maybe for a document or a window or something?

  5. jyasskin commented on Apr 6, 2016

    @jyasskin
    Member

    I wouldn't mark https://html.spec.whatwg.org/multipage/browsers.html#origin "for" anything. That's just what an origin is. If there's a definition of "the origin of a document", then that would be <dfn for="document">origin</dfn>.

  6. domenic commented on Oct 21, 2016

    @domenic
    MemberAuthor

    We've done pretty well so far; many of the above are unnecessary, although we should probably check. https://github.com/w3c/IndexedDB/blob/gh-pages/index.bs is also good.

  7. added 2 commits that reference this issue on Oct 21, 2016
    bec320d
    cff1f36
  8. added a commit that references this issue on Oct 22, 2016
    80f3639
  9. added 2 commits that reference this issue on Jan 8, 2019
    8e441ba
    c367712
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions