Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore self closing slash #154

Closed
wants to merge 6 commits into from
Closed

Ignore self closing slash #154

wants to merge 6 commits into from

Conversation

UziTech
Copy link

@UziTech UziTech commented Mar 29, 2018

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 UziTech mentioned this pull request Mar 29, 2018
6 tasks
@UziTech
Copy link
Author

UziTech commented Apr 30, 2018

@eGavr any feedback?

@UziTech
Copy link
Author

UziTech commented Sep 6, 2018

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

@UziTech UziTech closed this Sep 6, 2018
@UziTech UziTech deleted the ignore-self-closing-slash branch September 6, 2018 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Self-closing elements should be equivalent ignore />
1 participant