Skip to content

Commit

Permalink
refactor: Slightly smaller br size
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed May 1, 2024
1 parent 2d07ca8 commit 9ea2981
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,14 @@ function diffElementNodes(
let checked;

// Tracks entering and exiting namespaces when descending through the tree.
if (nodeType === 'svg') namespace = 'http://www.w3.org/2000/svg';
else if (nodeType === 'math')
namespace = 'http://www.w3.org/1998/Math/MathML';
else if (!namespace) namespace = 'http://www.w3.org/1999/xhtml';
namespace =
nodeType === 'svg'
? 'http://www.w3.org/2000/svg'
: nodeType === 'math'
? 'http://www.w3.org/1998/Math/MathML'
: !namespace
? 'http://www.w3.org/1999/xhtml'
: namespace;

if (excessDomChildren != null) {
for (i = 0; i < excessDomChildren.length; i++) {
Expand Down

0 comments on commit 9ea2981

Please sign in to comment.