Why is the last slash of a node missing in xidel output?

49 Views Asked by At
$ xidel --output-format html -s -e 'x:replace-nodes(//script,())' - <<< '<html><head><script>x=1</script><link href="http://example.com" type='text/css' rel='stylesheet' /></head><body>abc</body></html>'
<!DOCTYPE html>
<html><head><link href="http://example.com" type="text/css" rel="stylesheet"></head><body>abc
</body></html>

In the above example, <link href="http://example.com" type="text/css" rel="stylesheet" /> is contracted to <link href="http://example.com" type="text/css" rel="stylesheet">.

Shouldn't the last slash be maintained in the output?

0

There are 0 best solutions below