PHP DOMDocument erros / avisos em html5-tags

Eu tenho tentado analisar o código HTML5 para poder definir atributos / valores no código, mas parece que o DOMDocument (PHP5.3) não suporta tags como<nav> e<section>.

Existe alguma maneira de analisar isso como HTML no PHP e manipular o códig

Code para reproduzir:

<?php
$dom = new DOMDocument();
$dom->loadHTML("<!DOCTYPE HTML>
<html><head><title>test</title></head>
<body>
<nav>
  <ul>
    <li>first
    <li>second
  </ul>
</nav>
<section>
  ...
</section>
</body>
</html>");

Err

Warning: DOMDocument :: loadHTML (): nav de tag inválido na Entidade, linha: 4 em /home/wbkrnl/public_html/new-mvc/1.php na linha 17

Warning: DOMDocument :: loadHTML (): seção de tag inválida na Entidade, linha: 10 em /home/wbkrnl/public_html/new-mvc/1.php na linha 17

questionAnswers(6)

yourAnswerToTheQuestion