Skip to content

Commit

Permalink
Resolve #1004 and #1054 due to #962
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Mar 28, 2023
1 parent 78e294e commit 564afd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vendors/squire/build/squire-raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ const
// Recursively examine container nodes and wrap any inline children.
fixContainer = (container, root) => {
let wrapper, isBR;
[...container.children].forEach(child => {
// Not live, and fast
[...container.childNodes].forEach(child => {
isBR = child.nodeName === 'BR';
if (!isBR && isInline(child)
// && (blockTag !== 'DIV' || (child.matches && !child.matches(phrasingElements)))
Expand Down

0 comments on commit 564afd9

Please sign in to comment.