html-conformv0.2.1

← All examples

Parser errors

An unknown named character reference and a duplicate attribute. The HTML5 parser recovers from both and reports them as parser.html5.

Parser errors

examples/showcase/parse-errors.html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Parse errors</title>
</head>
<body>
  <p>Fish &chips; for dinner.</p>
  <p class="intro" class="lead">Duplicate attribute</p>
</body>
</html>
error   8:17   parser.html5
  an unknown named character reference
error   9:25   parser.html5
  a duplicate attribute on a tag

2 errors, 0 warnings
  • parser.html5