Skip to content

Allow flow content inside details elements#19

Open
j0k3r wants to merge 1 commit into
masterfrom
fix/details-flow-content
Open

Allow flow content inside details elements#19
j0k3r wants to merge 1 commit into
masterfrom
fix/details-flow-content

Conversation

@j0k3r

@j0k3r j0k3r commented Jul 7, 2026

Copy link
Copy Markdown

Fixes HTML5 handling for <details> elements. It currently restricts direct children of <details> to <summary> only, which removes valid flow content after the summary.

Html source:

<details><summary>short description</summary><p>Hidden long text</p></details>

Result before the fix:

<details><summary>short description</summary></details>

Result after the fix:

<details><summary>short description</summary><p>Hidden long text</p></details>

Fix j0k3r/graby#355

Fixes HTML5 handling for `<details>` elements. It currently restricts direct children of `<details>` to `<summary>` only, which removes valid flow content after the summary.

Html source:

```html
<details><summary>short description</summary><p>Hidden long text</p></details>
```

Result before the fix:

```html
<details><summary>short description</summary></details>
```

Result after the fix:

```html
<details><summary>short description</summary><p>Hidden long text</p></details>
```
@j0k3r j0k3r force-pushed the fix/details-flow-content branch from efac7c2 to 865c503 Compare July 7, 2026 13:55
@j0k3r j0k3r requested review from Kdecherf and jtojnar July 7, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: details node is not beeing fetched properly

2 participants