3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 14:45:44 +01:00

Answer product-owner round 1: 0 🔴, 2 🟡 (0 misread); refuse a stray data-indent-level and a stray open, name open in the README

This commit is contained in:
2026-11-15 12:09:39 +01:00
committed by Lillem4n
parent 0b88649dd8
commit c7766a2d2c
10 changed files with 36 additions and 27 deletions
+10 -6
View File
@@ -512,8 +512,9 @@ An eighth panel (2026-11-14, three readers in the same roles; seven for indentat
For an `indentation` mark, five of seven picked `data-indent-level`; whether a `margin-left` style
goes with it split 4 to 3. The maintainer answered on 2026-11-15 that the dialect holds no style at
all (README goal 10), so an indentation is `data-indent-level="2"` alone, on a paragraph or heading
holding no other mark. The `style` attributes above, a text and a background colour, an alignment and
a cell's `background`, work against that goal until `todo.md` item 188 spells each without one.
holding no other mark. The `style` attributes above work against that goal: a text colour, a
background colour, an alignment and a cell's `background`. They stand until `todo.md` item 188 spells
each without one.
## `htmlToAdf` also reads the dialect as a browser serializes it
@@ -527,10 +528,13 @@ or `>` reads as `<` or `>` (a browser from before the algorithm escaped th
in both, ` ` reads as a no-break space; and `\r\n` reads as a line feed. All of it holds in what
a carry element shows too. These are every difference the algorithm leaves between a browser's HTML
and `adfToHtml`'s, checked against Firefox's own `innerHTML` in the browser leg, and they hold for
every element the dialect writes, later ones included. One difference is DOM state, not the
algorithm's: a `<details>` its user opened carries `open=""` after its other attributes, and
`htmlToAdf` reads it as the same expand (the maintainer, 2026-11-15), since ADF's `expand` holds no
open state and the state is the viewer's. Other HTML stays refused, a lone `\r` among it. A refusal's position counts the HTML as handed in.
every element the dialect writes, later ones included.
One more difference is DOM state, not the algorithm's: a `<details>` its user opened carries `open=""`
after its other attributes. `htmlToAdf` reads it as the same expand (the maintainer, 2026-11-15),
since ADF's `expand` holds no open state and the state is the viewer's.
Other HTML stays refused, a lone `\r` among it. A refusal's position counts the HTML as handed in.
## No runtime dependencies