Skip to content

Commit

Permalink
Use <code> for references to a CDDL type (#455)
Browse files Browse the repository at this point in the history
* Use `<code>` for references to a CDDL type

The spec wrapped the CDDL result type of the Set Permission command in a
`<pre class="cddl">` block, even though the return type is actually a reference
to a CDDL type defined in WebDriver BiDi.

This update wraps the block into `<code>` instead, following similar
conventions used for IDL.

Context for the request is that CDDL definitions defined in specs are now
extracted and exposed in Webref to ease validation and integration in tools:
https://github.com/w3c/webref/tree/main/ed/cddl

* Fix cross-reference to "accelerometer" permission

The quotes are now included in the definition.
  • Loading branch information
tidoust authored Dec 19, 2024
1 parent 4d38a40 commit c9c9c75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1445,9 +1445,9 @@ <h6 id="webdriver-bidi-command-permissions-setPermission">
Result Type
</dt>
<dd>
<pre class="cddl">
<code>
EmptyResult
</pre>
</code>
</dd>
</dl>
<div class="algorithm" data-algorithm=
Expand Down Expand Up @@ -1788,7 +1788,7 @@ <h2>
</tr>
<tr data-cite="orientation-event">
<td class="string-token">
"[=accelerometer=]"
[="accelerometer"=]
</td>
<td class="is-policy-controlled">
YES
Expand Down

0 comments on commit c9c9c75

Please sign in to comment.