Okay/Spec: Difference between revisions
Luckily SOMEONE here has attention to detail. |
|||
| Line 104: | Line 104: | ||
The URI provided <span class="may">may</span> include a fragment component to specify which element the client should treat as [[Okay#ok-space|ok-space]] markup (e.g., <code><nowiki>https://example.com/#my-elem</nowiki></code>). The linked element <span class="must">must</span> be valid <code>ok-space</code> markup. If the fragment is specified and the corresponding element is present in the linked document, the client <span class="mustnt">must not</span> scan any other part of the document for <code>ok-space</code> markup. <syntaxhighlight lang="html"><!-- link to a space with the id "space" --> | The URI provided <span class="may">may</span> include a fragment component to specify which element the client should treat as [[Okay#ok-space|ok-space]] markup (e.g., <code><nowiki>https://example.com/#my-elem</nowiki></code>). The linked element <span class="must">must</span> be valid <code>ok-space</code> markup. If the fragment is specified and the corresponding element is present in the linked document, the client <span class="mustnt">must not</span> scan any other part of the document for <code>ok-space</code> markup. <syntaxhighlight lang="html"><!-- link to a space with the id "space" --> | ||
<link rel="ok-space" href="https://example.ok/#space" /> | <link rel="ok-space" href="https://example.ok/#space" /> | ||
<!-- anchors work, too. this | <!-- anchors work, too. thanks to the lack of fragment (the bit after the #), | ||
this link forces the client to rummage around for spaces like an animal --> | |||
<a rel="ok-space" href="https://benfoldsfive.example/"> | <a rel="ok-space" href="https://benfoldsfive.example/"> | ||
chat in the official Ben Folds Five space!!! | chat in the official Ben Folds Five space!!! | ||