diff --git a/.editorconfig b/.editorconfig index 625d610..df39c7c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,6 +12,9 @@ max_line_length = 100 [Makefile] indent_style = tab +[*.md] +max_line_length = off + [*.bs] indent_size = 1 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af3476e..66fe55b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,5 @@ name: Build + on: pull_request: branches: @@ -6,6 +7,8 @@ on: push: branches: - main + workflow_dispatch: + jobs: build: name: Build @@ -17,6 +20,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: "3.11" + - run: pip install bikeshed && bikeshed update # Note: `make deploy` will do a deploy dry run on PRs. - run: make deploy env: diff --git a/Makefile b/Makefile index ebdb132..2ff0ded 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ remote: xhr.bs ); local: xhr.bs - bikeshed spec xhr.bs xhr.html --md-Text-Macro="COMMIT-SHA LOCAL COPY" + bikeshed spec xhr.bs xhr.html --md-Text-Macro="COMMIT-SHA LOCAL-COPY" deploy: xhr.bs curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh diff --git a/xhr.bs b/xhr.bs index ad0f95d..424be65 100644 --- a/xhr.bs +++ b/xhr.bs @@ -283,13 +283,13 @@ constructor steps are: headers received, or loading, and it has one or more event listeners registered whose type is one of -readystatechange, -progress, -abort, -error, -load, -timeout, and -loadend. +{{XMLHttpRequest/readystatechange}}, +{{XMLHttpRequest/progress}}, +{{XMLHttpRequest/abort}}, +{{XMLHttpRequest/error}}, +{{XMLHttpRequest/load}}, +{{XMLHttpRequest/timeout!!event}}, and +{{XMLHttpRequest/loadend}}.

If an {{XMLHttpRequest}} object is garbage collected while its connection is still open, the user @@ -313,25 +313,25 @@ from {{XMLHttpRequestEventTarget}} as attributes: onloadstart - loadstart + {{XMLHttpRequest/loadstart}} onprogress - progress + {{XMLHttpRequest/progress}} onabort - abort + {{XMLHttpRequest/abort}} onerror - error + {{XMLHttpRequest/error}} onload - load + {{XMLHttpRequest/load}} ontimeout - timeout + {{XMLHttpRequest/timeout!!event}} onloadend - loadend + {{XMLHttpRequest/loadend}}

The following is the @@ -1029,11 +1029,12 @@ return this's cross-origin credentials.

  • Otherwise, if xhr's response's aborted flag is set, run the request error steps for xhr, - abort, and "{{AbortError!!exception}}" {{DOMException}}. + abort, and "{{AbortError!!exception}}" + {{DOMException}}.

  • Otherwise, if xhr's response is a network error, then run the request error steps for xhr, - error, and "{{NetworkError!!exception}}" {{DOMException}}. + {{XMLHttpRequest/error}}, and "{{NetworkError!!exception}}" {{DOMException}}.

    The request error steps for an {{XMLHttpRequest}} object xhr, @@ -1093,7 +1094,7 @@ return this's cross-origin credentials.

  • If this's state is opened with this's send() flag set, headers received, or loading, then run the - request error steps for this and abort. + request error steps for this and abort.

  • If this's state is done, then set this's state to