mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 23:25:43 +01:00
Answer product-owner round 1: 0 🔴, 1 🟡 (0 misread); tell a caller who only holds the ADF to keep it read-only, and give the real reason
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@
|
|||||||
`localId` as `data-local-id`. Every other node is an element of class `adf-carry` holding the
|
`localId` as `data-local-id`. Every other node is an element of class `adf-carry` holding the
|
||||||
node's JSON in `data-adf` and showing its content, links included. Every URL is written as the
|
node's JSON in `data-adf` and showing its content, links included. Every URL is written as the
|
||||||
ADF holds it, `javascript:` included: sanitize HTML from an author you do not trust before
|
ADF holds it, `javascript:` included: sanitize HTML from an author you do not trust before
|
||||||
showing it. It refuses an inline card a link marks, which Atlassian's schema does not allow, as
|
showing it. It refuses an inline card a link marks, as `unsupported-node-shape`: Atlassian's schema gives a
|
||||||
`unsupported-node-shape`.
|
card no link mark, and HTML nests no link in a link.
|
||||||
- `htmlToAdf` reads `adfToHtml`'s HTML back to the document it came from, a carry element from its
|
- `htmlToAdf` reads `adfToHtml`'s HTML back to the document it came from, a carry element from its
|
||||||
`data-adf`. It reads that HTML as a browser's `innerHTML` writes it too (a raw `"` in text,
|
`data-adf`. It reads that HTML as a browser's `innerHTML` writes it too (a raw `"` in text,
|
||||||
` `, a raw `<` or `>` in an attribute value) and as a form post sends it (`\r\n` for each
|
` `, a raw `<` or `>` in an attribute value) and as a form post sends it (`\r\n` for each
|
||||||
|
|||||||
@@ -646,8 +646,9 @@ Every call can raise these:
|
|||||||
twice, a block or a non-text inline node holding `text`, or a leaf block or a non-text inline node
|
twice, a block or a non-text inline node holding `text`, or a leaf block or a non-text inline node
|
||||||
holding `content`. Keep the ADF and show the document read-only; where you built the ADF, fix
|
holding `content`. Keep the ADF and show the document read-only; where you built the ADF, fix
|
||||||
what the message names.
|
what the message names.
|
||||||
- **Writing, in `adfToHtml`**: an inline card marked by a link, which Atlassian's schema does not
|
- **Writing, in `adfToHtml`**: an inline card marked by a link: Atlassian's schema gives a card no
|
||||||
allow. Remove the mark; where you hold the ADF, the message's path names the card.
|
link mark, and HTML nests no link in a link. Keep the ADF and show the document read-only; where
|
||||||
|
you built the ADF, remove the link mark from the card the error's `path` names.
|
||||||
- **Writing, in `adfToPortableMarkdown`**: a line or task list the portable writer cannot spell.
|
- **Writing, in `adfToPortableMarkdown`**: a line or task list the portable writer cannot spell.
|
||||||
This is a bug in this library: report it.
|
This is a bug in this library: report it.
|
||||||
- **Past the engine's longest string**:
|
- **Past the engine's longest string**:
|
||||||
|
|||||||
Reference in New Issue
Block a user