xmllint --html exit code 0

raw

html-partial-error.htm

1
2
3
4
5
<div class="foo">
 <h1>Hallo</h2>
 <span>Bar</span>
</div>
 
raw

out.txt

$ xmllint --html --noout html-partial-error.htm; echo $?
tests/files/html-partial-error.htm:2: HTML parser error : Unexpected end tag : h2
 <h1>Hallo</h2>
               ^
0
Christian Weiske Christian Weiske
owner

History