diff options
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/16-normalize_whitespace.json')
-rw-r--r-- | bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/16-normalize_whitespace.json | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/16-normalize_whitespace.json b/bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/16-normalize_whitespace.json new file mode 100644 index 00000000..d4490af4 --- /dev/null +++ b/bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/16-normalize_whitespace.json @@ -0,0 +1,47 @@ +{ + "name": "Normalize whitespace", + "options": { + "normalizeWhitespace": true + }, + "html": "Line one\n<br>\t \r\n\f <br>\nline two<font><br> x </font>", + "expected": [ + { + "data": "Line one ", + "type": "text" + }, + { + "type": "tag", + "name": "br", + "attribs": {} + }, + { + "data": " ", + "type": "text" + }, + { + "type": "tag", + "name": "br", + "attribs": {} + }, + { + "data": " line two", + "type": "text" + }, + { + "type": "tag", + "name": "font", + "attribs": {}, + "children": [ + { + "type": "tag", + "name": "br", + "attribs": {} + }, + { + "data": " x ", + "type": "text" + } + ] + } + ] +}
\ No newline at end of file |