Skip to content

Commit

Permalink
Review feedback.
Browse files Browse the repository at this point in the history
Co-authored-by: Anne van Kesteren <[email protected]>
  • Loading branch information
otherdaniel and annevk authored Oct 13, 2023
1 parent af9a6fe commit e0b5bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ element.setHTML(
There is no `flattenAttribute` because attribute nodes do not have children.

Flatten applies to its immediate children, i.e. to one level. Combining
`allowElements` with `flattenElements` lets you keep some formatting, but all
`elements` with `flattenElements` lets you keep some formatting, but all
the text content:

```js
const config_flatten_spans = {
allowElements: ["b", "i"],
elements: ["b", "i"],
flattenElements: ["span"]
};

Expand Down

0 comments on commit e0b5bea

Please sign in to comment.