|
187 | 187 | "html": "<p>Let <var>parsed</var> be the result of <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#parse-a-json-string-to-an-infra-value\" id=\"ref-for-parse-a-json-string-to-an-infra-value\">parsing JSON into Infra values</a> given <var>data</var>. If this throws an exception, then <a data-link-type=\"dfn\" href=\"https://w3c.github.io/at-driver/#send-an-error-response\" id=\"ref-for-send-an-error-response①\">send an error response</a> given <var>connection</var>, null, and <a data-link-type=\"dfn\" href=\"https://w3c.github.io/at-driver/#error-code-invalid-argument\" id=\"ref-for-error-code-invalid-argument①\">invalid argument</a>, and finally return.</p>" |
188 | 188 | }, |
189 | 189 | { |
190 | | - "html": "Match <var>parsed</var> against the <a data-link-type=\"dfn\" href=\"https://w3c.github.io/at-driver/#remote-end-definition\" id=\"ref-for-remote-end-definition⑤\">remote end definition</a>. If this results in a match:", |
| 190 | + "html": "Match <var>parsed</var> against the <code class=\"cddl\"><a data-link-type=\"cddl\" href=\"https://w3c.github.io/at-driver/#cddl-module-remote-end-definition\" id=\"ref-for-cddl-module-remote-end-definition⑤\">remote end definition</a></code>. If this results in a match:", |
191 | 191 | "rationale": "let", |
192 | 192 | "steps": [ |
193 | 193 | { |
|
258 | 258 | ] |
259 | 259 | }, |
260 | 260 | { |
261 | | - "html": "<p>Let <var>response</var> be a new map matching the <code>CommandResponse</code> production in the <a data-link-type=\"dfn\" href=\"https://w3c.github.io/at-driver/#local-end-definition\" id=\"ref-for-local-end-definition⑤\">local end definition</a> with the <code>id</code> field set to <var>command id</var> and the <code>value</code> field set to <var>value</var>.</p>" |
| 261 | + "html": "<p>Let <var>response</var> be a new map matching the <code>CommandResponse</code> production in the <code class=\"cddl\"><a data-link-type=\"cddl\" href=\"https://w3c.github.io/at-driver/#cddl-module-local-end-definition\" id=\"ref-for-cddl-module-local-end-definition⑤\">local end definition</a></code> with the <code>id</code> field set to <var>command id</var> and the <code>value</code> field set to <var>value</var>.</p>" |
262 | 262 | }, |
263 | 263 | { |
264 | 264 | "html": "<p>Let <var>serialized</var> be the result of <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#serialize-an-infra-value-to-json-bytes\" id=\"ref-for-serialize-an-infra-value-to-json-bytes\">serialize an infra value to JSON bytes</a> given <var>response</var>.</p>" |
|
323 | 323 | "rationale": ".algorithm", |
324 | 324 | "steps": [ |
325 | 325 | { |
326 | | - "html": "<p>Let <var>error data</var> be a new <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-map\" id=\"ref-for-ordered-map④\">map</a> matching the <code>ErrorResponse</code> production in the <a data-link-type=\"dfn\" href=\"https://w3c.github.io/at-driver/#local-end-definition\" id=\"ref-for-local-end-definition⑥\">local end definition</a>, with the <code>id</code> field set to <var>command id</var>, the <code>error</code> field set to <var>error code</var>, the <code>message</code> field set to an <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#implementation-defined\" id=\"ref-for-implementation-defined⑥\">implementation-defined</a> string containing a human-readable definition of the error that occurred and the <code>stacktrace</code> field optionally set to an <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#implementation-defined\" id=\"ref-for-implementation-defined⑦\">implementation-defined</a> string containing a stack trace report of the active stack frames at the time when the error occurred.</p>" |
| 326 | + "html": "<p>Let <var>error data</var> be a new <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-map\" id=\"ref-for-ordered-map④\">map</a> matching the <code>ErrorResponse</code> production in the <code class=\"cddl\"><a data-link-type=\"cddl\" href=\"https://w3c.github.io/at-driver/#cddl-module-local-end-definition\" id=\"ref-for-cddl-module-local-end-definition⑥\">local end definition</a></code>, with the <code>id</code> field set to <var>command id</var>, the <code>error</code> field set to <var>error code</var>, the <code>message</code> field set to an <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#implementation-defined\" id=\"ref-for-implementation-defined⑥\">implementation-defined</a> string containing a human-readable definition of the error that occurred and the <code>stacktrace</code> field optionally set to an <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#implementation-defined\" id=\"ref-for-implementation-defined⑦\">implementation-defined</a> string containing a stack trace report of the active stack frames at the time when the error occurred.</p>" |
327 | 327 | }, |
328 | 328 | { |
329 | 329 | "html": "<p>Let <var>response</var> be the result of <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#serialize-an-infra-value-to-json-bytes\" id=\"ref-for-serialize-an-infra-value-to-json-bytes②\">serialize an infra value to JSON bytes</a> given <var>error data</var>.</p>" |
|
469 | 469 | "html": "<p>Let <var>value</var> be the value of the setting named <var>name</var>.</p>" |
470 | 470 | }, |
471 | 471 | { |
472 | | - "html": "<p>Let <var>item</var> be a new <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-map\" id=\"ref-for-ordered-map⑥\">map</a> matching the <code>SettingsGetSettingsResultItem</code> production in the <a data-link-type=\"dfn\" href=\"https://w3c.github.io/at-driver/#local-end-definition\" id=\"ref-for-local-end-definition⑨\">local end definition</a> with the <code>name</code> field set to <var>name</var> and the <code>value</code> field set to <var>value</var>.</p>" |
| 472 | + "html": "<p>Let <var>item</var> be a new <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#ordered-map\" id=\"ref-for-ordered-map⑥\">map</a> matching the <code>SettingsGetSettingsResultItem</code> production in the <code class=\"cddl\"><a data-link-type=\"cddl\" href=\"https://w3c.github.io/at-driver/#cddl-module-local-end-definition\" id=\"ref-for-cddl-module-local-end-definition⑨\">local end definition</a></code> with the <code>name</code> field set to <var>name</var> and the <code>value</code> field set to <var>value</var>.</p>" |
473 | 473 | }, |
474 | 474 | { |
475 | 475 | "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-append\" id=\"ref-for-list-append\">Append</a> <var>item</var> to <var>items</var>.</p>" |
|
0 commit comments