We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ca21cc commit 3d279bbCopy full SHA for 3d279bb
packages/html-diff/src/index.ts
@@ -153,14 +153,6 @@ export default class HtmlDiff {
153
)
154
break
155
case 'replace':
156
- // should handle the duplicated tags(to optimize): find the same tag name and reserve one
157
- // delete: <p>dd
158
- // create: <p>ff</p><p>haha
159
- // expected: <p><span class>dd</span><span class>ff</span></p><p>haha
160
- // delete: <p>dd</p><p>滴
161
162
- // expected: <p><span class>dd</span><span class>ff</span></p>ha<p>
163
-
164
// deal specially tag replace
165
const olds = this.oldWords.slice(operation.oldStart, operation.oldEnd)
166
const news = this.newWords.slice(operation.newStart, operation.newEnd)
0 commit comments