Permalink
Commits on Aug 31, 2016
  1. @annevk @zcorpan

    Editorial: remove /*sealed*/ annotation

    It was added to discourage other specification editors from creating
    subclasses of the annotated classes. The reasons for removing this
    annotation are:
    
    1) It’s unlikely someone will create a subclass.
    2) The annotation doesn’t really make the intention clear.
    3) If someone created a subclass it would be subject to sufficient
    scrutiny.
    4) Anne keeps confusing himself with it.
    
    (This was also discussed in #643, if you wanted to read even more about
    this.)
    annevk committed with zcorpan Aug 31, 2016
Commits on Aug 30, 2016
  1. @annevk @zcorpan

    Editorial: add IDs for en-GB terms

    In preparation for switching to en-US without breaking links.
    Part of #654.
    annevk committed with zcorpan Aug 30, 2016
Commits on Aug 29, 2016
  1. @domenic

    Fix typo in previous commit

    domenic committed Aug 29, 2016
  2. @takenspc @domenic

    Rewrite link-fixup.js

    This makes various changes to the link-fixup.js code:
    
    - Integrates with whatwg/wattsi#25 and
      whatwg/html-build#88 in order to let the build
      process produce a separate fragment-links.json file for consumption
      by external tools.
    - Inlines the fragment links into the link-fixup.js file (via the build
      system) in order to start redirects as soon as possible.
    - Uses <script defer> instead of waiting for DOMContentLoaded in order
      to simplify the logic.
    - Moves the redirection logic that Wattsi was writing into
      fragment-links.js into link-fixup.js (see
      https://github.com/whatwg/wattsi/blob/1854204f23e082d5bac4382d833e20f7a61560f6/src/wattsi.pas#L1566-L1580).
    takenspc committed with domenic Aug 29, 2016
  3. @annevk @domenic

    Editorial: make settings object's module map and origin <dfn>s

    A follow up to #1718 to let folks be more specific when talking about
    module maps and origins.
    annevk committed with domenic Aug 29, 2016
  4. @annevk @domenic
  5. @annevk @domenic

    Add about:html-kind for use in MP4 and DASH

    Fixes #1669.
    annevk committed with domenic Aug 29, 2016
  6. @annevk @domenic

    Editorial: make settings object's referrer policy a <dfn>

    This allows Fetch and Referrer Policy to reference it directly.
    annevk committed with domenic Aug 29, 2016
Commits on Aug 27, 2016
  1. @domenic

    Update and correct <meta name="referrer"> parsing

    This stems from
    w3c/webappsec-referrer-policy#53 and
    w3c/webappsec-referrer-policy#66 which remove
    the legacy keyword support from the HTTP Referrrer-Policy header. We
    instead move that into HTML as a preprocessing step for the <meta
    name="referrer"> element, before setting the resulting policy on the
    document.
    
    While there, this fixes the <meta name="referrer"> parsing in a few
    ways compared to the previous specification:
    
    - It includes the additional legacy translation
      "origin-when-crossorigin" => "origin-when-cross-origin".
    - It no longer strips leading and trailing whitespace.
    - It allows later <meta name="referrer"> elements to override earlier
      ones, in order to get nice fallback behavior.
    domenic committed on GitHub Aug 27, 2016
Commits on Aug 26, 2016
  1. @jyasskin @domenic

    Editorial: export more definitions for Bikeshed-using specs

    In particular, this takes care of the terms that Bluetooth and
    Permissions use.
    jyasskin committed with domenic Aug 26, 2016
  2. @domenic

    Make quality an explicit argument for canvas image conversion

    Fixes #452, by making canvas's toDataURL and toBlob explicitly accept a
    quality argument. This replaces the generic argument-passing
    infrastructure that was in place previously, but was only used for JPEG
    quality.
    
    While there:
    
    - Allowed the quality argument to be used by any format that has
    variable quality, such as WebP, since (according to
    https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)
    Chrome supports it alongside a type of "image/webp"
    - Removed the now-unused "native flag" from this section
    domenic committed on GitHub Aug 26, 2016
  3. @domenic

    Rename and expose the TransferHelper abstract operation

    Fixes #1616.
    domenic committed on GitHub Aug 26, 2016
  4. @domenic @annevk

    Change minlength/maxlength behavior around linebreaks

    As discussed in #1467, the current situation around these attributes is
    not very interoperable. Some browsers count line breaks as two
    characters (per the spec before this change), others as one character.
    
    Per discussions, this updates minlength and maxlength to count line
    breaks as one character. We believe this is the most developer-friendly
    approach, as evidenced in part by repeated complaints against Chromium
    for its behavior following the previous standard.
    
    While here, updated the textLength property to return the code-point
    length of the element's API value, instead of the element's value, since
    as per http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=4304
    that is what browsers actually do. Similarly, updated the conformance
    requirement on the text content of the textarea element to match
    maxlength's actually-implemented behavior.
    
    Fixes part of #1467, but the debate remains about code-unit length vs.
    code-point length vs. number of grapheme clusters.
    domenic committed with annevk Aug 26, 2016
Commits on Aug 25, 2016
  1. @domenic

    Do not repeat the referrer policies

    Instead, simply delegate to the referrer policy spec. This makes it
    easier to add new referrer policies without editing HTML.
    
    Fixes #1656. See also
    w3c/webappsec-referrer-policy#62.
    domenic committed on GitHub Aug 25, 2016
  2. @domenic

    Fix reloads to not wipe out future session history

    Fixes #1578. When performing a reload via location.reload() or a user
    interface element, it seems more correct to go down the "entry update"
    path, instead of going down the normal path and turning on "replacement
    enabled". The normal path wipes out all session history entries after
    the current one, which is not what browsers do when reloading.
    domenic committed on GitHub Aug 25, 2016
  3. @domenic @annevk

    Update advice to favor the relevant realm over the current one

    Fixes #1653, and also clarifies and tidies up some stuff while in the area.
    domenic committed with annevk Aug 25, 2016
Commits on Aug 24, 2016
  1. @domenic @annevk
  2. @domenic @annevk

    Process custom element connectedCallback immediately during parsing

    Fixes w3c/webcomponents#551 by ensuring that
    insertions into the DOM trigger connectedCallback immediately, instead
    of putting the callback reaction on the the backup element queue and
    letting it get triggered at the next microtask checkpoint. This means
    connectedCallback will generally be invoked when the element has zero
    children, as expected, instead of a random number depending on when the
    next custom element is seen.
    domenic committed with annevk Aug 24, 2016
Commits on Aug 23, 2016
  1. @domenic @annevk

    Move the check on registering an element interface as a custom element

    Previously, this would be prevented at definition time. However, that
    required extra work to know all of the possible element interfaces, and
    was inconsistent with other failure cases. This moves the necessary
    check to construction time, which allows it to be simplified. Fixes
    w3c/webcomponents#541.
    domenic committed with annevk Aug 23, 2016
Commits on Aug 22, 2016
  1. @jyasskin @domenic

    Editorial: fix the metadata of "origin" <dfn>s

    The definition of origins in general should have for="", while
    definitions of a foo's origin should have for="foo".
    
    This contains some workarounds for Bikeshed bugs where it picks up dfns
    even though they are explicitly marked as "noexport", by giving them
    for="" values.
    jyasskin committed with domenic Aug 22, 2016
  2. @annevk @zcorpan

    Editorial: hober's name changed

    annevk committed with zcorpan Aug 22, 2016
Commits on Aug 20, 2016
  1. @domenic @annevk

    Simplify the reentrance guard for custom element definition

    Previously, we would allow reentrance as long as it was not with the
    same name or constructor as was currently being defined, using the
    mechanism of a "set of being-defined names" and "set of being-defined
    constructors". This was overly complex, given that there are not really
    any use cases for defining a custom element in a getter triggered by the
    element definition algorithm. So instead, we move to just using an
    overall reentrance-guard flag.
    
    Fixes w3c/webcomponents#545.
    domenic committed with annevk Aug 20, 2016
Commits on Aug 19, 2016
  1. @domenic

    Do not throw for zero colgroup/col.span and textarea.rows/cols

    Instead, fall back to the default value.
    
    For col/colgroup, 3/4 engines do not throw; this aligns with the
    majority. For textarea, 2/4 engines do not throw, and Firefox would like
    to align with not throwing. More detail at
    #1200 (comment).
    
    Fixes #1200.
    domenic committed on GitHub Aug 19, 2016
  2. @mikewest @annevk

    Editorial: moar bikeshed metadata

    This should cover the few remaining terms that CSP needs, and does some drive-by work for MIX and REFERRER-POLICY as well.
    mikewest committed with annevk Aug 19, 2016
Commits on Aug 18, 2016
  1. @xidachen @domenic

    Correct a small mistake in TextMetrics

    When the given baseline is the top of the em square, then its distance
    to the lowest bottom of the em square cannot be 0.
    xidachen committed with domenic Aug 18, 2016
  2. @zcorpan @annevk
  3. @annevk @zcorpan

    Editorial: "actually disabled" is also used for :enabled now

    PR #1672 made :enabled use the actually disabled definition. This fixes
    the note below actually disabled to reflect that change.
    annevk committed with zcorpan Aug 18, 2016
  4. @mikewest @annevk

    Upstream navigation hooks from CSP

    This will enable implementation of 'frame-ancestors' and 'form-action', and makes a bit of progress towards #1230.
    mikewest committed with annevk Aug 18, 2016
  5. @mikewest @annevk

    Editorial: add bikeshed metadata

    This patch adds bikeshed metadata for various concepts and terms used by CSP and related specifications.
    mikewest committed with annevk Aug 18, 2016
  6. @annevk
Commits on Aug 17, 2016
  1. @zcorpan

    Upstream the innerText spec

    From https://rocallahan.github.io/innerText-spec/
    with the following normative changes:
    
    * Defined behavior for non-CSS UAs.
    * The setter is better defined.
    * Added [CEReactions, TreatNullAs=EmptyString]
      to the IDL.
    
    Fixes #465.
    
    Remaining issues: #1679
    zcorpan committed on GitHub Aug 17, 2016
  2. @gibson042 @domenic

    Define :enabled by reference to "actually disabled"

    This makes it obvious that the list of conditions for :enabled and
    :disabled are inverses of each other.
    
    Removes a no-longer-accurate comment about disabling a/area/link
    elements.
    gibson042 committed with domenic Aug 17, 2016
  3. @domenic @annevk

    Make document.write etc. throw during parsing custom elements

    That is, document.open/close/write/writeln now all throw immediately if
    used while the parser is invoking a custom element constructor, to
    prevent them from messing with the token stream. Closes #1630 and closes
    w3c/webcomponents#537.
    domenic committed with annevk Aug 17, 2016
Commits on Aug 16, 2016
  1. @annevk @domenic

    Editorial: export more terms for usage by Bikeshed

    In particular:
    
    * associated `Document`
    * current settings object
    * current global object
    * relevant settings object
    * relevant Realm
    * relevant global object
    
    This should help the DOM Standard:
    whatwg/dom#296.
    annevk committed with domenic Aug 16, 2016
  2. @mathiasbynens @annevk

    Remove references to the JavaScript Standard

    The JavaScript Standard has accomplished its goal. Some remaining
    web compatibility issues are tracked over at
    https://github.com/tc39/ecma262/labels/web%20reality, to which
    https://javascript.spec.whatwg.org/ now redirects. The rest of the
    contents of the JavaScript Standard have been upstreamed into
    ECMAScript, Annex B.
    
    https://blog.whatwg.org/javascript
    
    Fixes #1660.
    mathiasbynens committed with annevk Aug 16, 2016