---
'@lexical/html': patch
---
[fix] `$generateNodesFromDOM` keeps the bold, italic, underline and strikethrough of a `` around another ``, as Word for the web writes every run
Verify: import `x` with `$generateNodesFromDOM`; `x` is bold. An inner element still adds formats without removing the outer ones, as across different tags: `x` now gives a bold `x`, like `x` already did. Every tag's `forChild` now runs for the children of a nested element with the same tag, outermost first, as the legacy import docs describe, so check an application's own `importDOM` conversions whose `forChild` is not idempotent, such as one that toggles bold without checking `hasFormat`.