0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Don't merge <a> tags.

Fixes #198
This commit is contained in:
Neil Jenkins 2016-05-26 10:32:45 +10:00
parent aa3857ab77
commit 4354b46db9
3 changed files with 3 additions and 1 deletions

View file

@ -229,6 +229,7 @@ function areAlike ( node, node2 ) {
return !isLeaf( node ) && (
node.nodeType === node2.nodeType &&
node.nodeName === node2.nodeName &&
node.nodeName !== 'A' &&
node.className === node2.className &&
( ( !node.style && !node2.style ) ||
node.style.cssText === node2.style.cssText )

File diff suppressed because one or more lines are too long

View file

@ -58,6 +58,7 @@ function areAlike ( node, node2 ) {
return !isLeaf( node ) && (
node.nodeType === node2.nodeType &&
node.nodeName === node2.nodeName &&
node.nodeName !== 'A' &&
node.className === node2.className &&
( ( !node.style && !node2.style ) ||
node.style.cssText === node2.style.cssText )