This commit is contained in:
the-djmaze 2023-12-01 01:15:19 +01:00
parent e9ad4e38c2
commit f8d990a25f

View file

@ -268,7 +268,7 @@ const
// Not live, and fast
[...container.childNodes].forEach(child => {
isBR = child.nodeName === 'BR';
if (!isBR && isInline(child)
if (!isBR && child.parentNode == root && isInline(child)
// && (blockTag !== 'DIV' || (child.matches && !child.matches(phrasingElements)))
) {
wrapper = wrapper || createElement('div');