We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently optionally self-closing elements such as images and line breaks are not considered equivalent. E.G.
const differ = require('html-differ') let lhs = '<div><br></div>' let rhs = '<div><br /></div>' let diff = differ.diffHtml(lhs, rhs) console.log(diff) // [ // { // "value": "<div><br" // }, // { // "value": "/", // "added": true // }, // { // "value": "></div>" // } // ]
For reference Parse5 and htmlparser2 interpret both strings equally. I'm looking into this to see if I can help.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Currently optionally self-closing elements such as images and line breaks are not considered equivalent. E.G.
For reference Parse5 and htmlparser2 interpret both strings equally. I'm looking into this to see if I can help.
The text was updated successfully, but these errors were encountered: