Added Js modification to remove new line.
Some extra changes are:
1. This is...

Contribution Date
Technology
Contribution Project
Contribution Details

Added Js modification to remove new line.

Some extra changes are:
1. This is showing error when node is null.

- tag = node.tagName.toLowerCase(); + tag = (node !== null) ? node.tagName.toLowerCase() : null;

2. Also can't able to access node.attributes when node is null. The very next line is finding .length. which needs to be passed empty string on null.

- attributes = node.attributes; + attributes = (node !== null) ? node.attributes : '';
Contribution Author
Files count
0
Patches count
0