diff --git a/packages/html-diff/src/index.ts b/packages/html-diff/src/index.ts index 4da85fd..90af9e4 100644 --- a/packages/html-diff/src/index.ts +++ b/packages/html-diff/src/index.ts @@ -153,14 +153,6 @@ export default class HtmlDiff { ) break case 'replace': - // should handle the duplicated tags(to optimize): find the same tag name and reserve one - // delete:
dd - // create:
ff
haha - // expected:
ddff
haha - // delete:
dd
滴 - // create:
ff
haha - // expected:
ddff
ha- // deal specially tag replace const olds = this.oldWords.slice(operation.oldStart, operation.oldEnd) const news = this.newWords.slice(operation.newStart, operation.newEnd)