11 Commits

Author SHA1 Message Date
Manuel Martin
47f54fb06d fix(semantic-dom-diff): normalize adjacent textNodes 2020-12-28 17:39:13 +01:00
Daniel Vivar
caa16081e3 feat(semantic-dom-diff): diff options now process scoped elements 2020-10-03 10:21:30 +02:00
Daniel Vivar
43859579bd feat(semantic-dom-diff): diff Scoped Element tags correctly into Shadow DOM snapshots
- Substituted every el.localName call with getLocalName in getDiffableHTML function
- Using data-tag-name instead to retrieve original tag name
- Update readme explanation and examples accordingly
- Adding a test for the new default functionality
2020-09-11 17:37:10 +02:00
Julian Wachholz
375180de30 fix(semantic-dom-diff): fix unescaped attributes 2020-08-27 13:41:43 +02:00
Benny Powers
c8a3b18936 fix(semantic-dom-diff): allow assertion message
also fixes types
2020-04-25 22:00:19 +02:00
Syed Rameez Aijaz
0db1e73ad4 feat(semantic-dom-diff): strip attributes that contains only whitespace 2019-10-22 13:23:06 +03:00
Benny Powers
f2eea9d09a fix(semantic-dom-diff): strip empty class attrs when diffing (#799) 2019-09-15 06:41:39 -07:00
Benny Powers
8ac732f100 feat(semantic-dom-diff): strip some empty attrs
Adds a `stripEmptyAttributes` option, which defaults to
`['class', 'id']`, which when encountering an empty
instance of that attr (i.e. `class=""`),
will remove it from the resulting string.

affects: @open-wc/semantic-dom-diff

Fixes #554
2019-07-08 23:32:00 +02:00
Lars den Bakker
f7a675a01c feat(semantic-dom-diff): add support for snapshot testing 2019-04-08 09:19:13 +02:00
Lars den Bakker
6528679a4c chore(chai-dom-equals): pass along diff configuration 2019-03-31 17:50:08 +02:00
Lars den Bakker
09fbdb51cc chore(semantic-dom-diff): remove dependencies on external libraries 2019-03-31 17:50:08 +02:00