Closed feeeper closed 4 years ago
It's a bug created during an attempt to build a feature... It should only exclude the node tag for empty text nodes. It should still show the node tag for the other nodes.
Well, realistically it should exclude the whole node for empty text nodes. There is a logic error in there that appears to include excluding the node tag of other nodes as part of the exclusion.
Just updated to fix this issue. Can you let me know if it acts as you'd expect?
Why if I set
EmptyTextNodeHandling
toEmptyTextNodeHandling.Ignore
I don't have "node" property in the resulting JSON? Is it ok or not?EmptyTextNodeHandling.Include
example:EmptyTextNodeHandling.Ignore
example:As I can see
JsonizeNode.Node
property is sets only if innerText is not empty or ifEmptyTextNodeHandling == EmptyTextNodeHandling.Include
:Is it bug or feature?