bem / html-differ

Сompares two HTML
http://bem.info/tools/testing/html-differ/
MIT License
212 stars 45 forks source link

Ignore self closing slash #154

Closed UziTech closed 6 years ago

UziTech commented 6 years ago

Adds an option to ignore the self closing slash

new HtmlDiffer().isEqual('<hr />', '<hr>'); // false

new HtmlDiffer({ ignoreSelfClosingSlash: true }).isEqual('<hr />', '<hr>'); // true

fixes #152 fixes #135

UziTech commented 6 years ago

@eGavr any feedback?

UziTech commented 6 years ago

Closing this and moving to https://github.com/markedjs/html-differ