You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/diffDOM/index.ts
+1
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ const DEFAULT_OPTIONS = {
18
18
maxDepth: false,// False or a numeral. If set to a numeral, limits the level of depth that the the diff mechanism looks for differences. If false, goes through the entire tree.
19
19
maxChildCount: 50,// False or a numeral. If set to a numeral, only does a simplified form of diffing of contents so that the number of diffs cannot be higher than the number of child nodes.
20
20
valueDiffing: true,// Whether to take into consideration the values of forms that differ from auto assigned values (when a user fills out a form).
21
+
simplifiedElementCheck: true,// Whether to use simplified element type checking for primitive virtual DOMs without ownerDocument
21
22
// syntax: textDiff: function (node, currentValue, expectedValue, newValue)
Copy file name to clipboardExpand all lines: src/diffDOM/types.ts
+1
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,7 @@ interface DiffDOMOptions {
106
106
maxChildCount: number// False or a numeral. If set to a numeral, only does a simplified form of diffing of contents so that the number of diffs cannot be higher than the number of child nodes.
107
107
valueDiffing: boolean// Whether to take into consideration the values of forms that differ from auto assigned values (when a user fills out a form).
108
108
caseSensitive: boolean// Whether to preserve the case of an input string. Important when including CML (XHTML, SVG, etc.)
109
+
simplifiedElementCheck: boolean// Whether to use simplified element type checking for primitive virtual DOMs without ownerDocument
109
110
// syntax: textDiff: function (node, currentValue, expectedValue, newValue)
0 commit comments