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
**html-differ** compares HTML codes using the following criteria:
7
+
**html-differ** compares HTML using the following criteria:
8
8
9
9
*`<!DOCTYPE>` declarations are case-insensitive, so the following two code samples will be considered to be equivalent:
10
10
@@ -54,7 +54,7 @@ For example, the following two code samples will be considered to be equivalent:
54
54
```
55
55
56
56
**CAUTION!**<br>
57
-
**html-differ** does not check the validity of HTML codes, but compares them using the above shown criteria and specified options (see the list of possible options in the [API](https://github.com/bem/html-differ#api)).
57
+
**html-differ** does not check the validity of HTML, but compares them using the above shown criteria and specified options (see the list of possible options in the [API](https://github.com/bem/html-differ#api)).
58
58
59
59
## Install
60
60
@@ -240,7 +240,7 @@ The options wiil be predefined:
240
240
**htmlDiffer.diffHtml**<br>
241
241
**@param***{String}* - the 1-st HTML code<br>
242
242
**@param***{String}* - the 2-nd HTML code<br>
243
-
**@returns***{Array of objects}* - [array with diffs](https://github.com/kpdecker/jsdiff#change-objects) between HTML codes
243
+
**@returns***{Array of objects}* - [array with diffs](https://github.com/kpdecker/jsdiff#change-objects) between HTML
244
244
245
245
**htmlDiffer.isEqual**<br>
246
246
**@param***{String}* - the 1-st HTML code<br>
@@ -260,15 +260,15 @@ var logger = require('html-differ/lib/logger');
260
260
**@param***{Array of objects}* - the result of the work of the method **htmlDiffer.diffHtml**<br>
261
261
**@param***{Object}* - options:<br>
262
262
263
-
***charsAroundDiff: Number** - the number of characters around the diff result between two HTML codes (default: `40`).
263
+
***charsAroundDiff: Number** - the number of characters around the diff result between two HTML (default: `40`).
264
264
265
265
**@returns***{String}*
266
266
267
267
**logger.logDiffText**<br>
268
268
**@param***{Array of objects}* - the result of the work of the method **htmlDiffer.diffHtml**<br>
269
269
**@param***{Object}* - options:<br>
270
270
271
-
***charsAroundDiff: Number** - the number of characters around the diff result between two HTML codes (default: `40`).
271
+
***charsAroundDiff: Number** - the number of characters around the diff result between two HTML (default: `40`).
0 commit comments