extract-html-diff icon indicating copy to clipboard operation
extract-html-diff copied to clipboard

Can't diff empty HTML string

Open ghost opened this issue 8 years ago • 0 comments

import extract_html_diff

html = ''
other_html = '<div> <h1>My site</h1> <div>Other content</div> </div>'

extract_html_diff.as_string(html, other_html)

Error returned is lxml.etree.ParserError: Document is empty

Should just return other_html in this case.

ghost avatar Nov 22 '17 07:11 ghost