Risolto 
Il problema sta nel fatto che DOM non parsa bene l'html5. Mi era sfuggito perché DOM mi creava automaticamente il DTD e anche se lo toglievo poi non funzionava.
Ho applicato questo codice:
codice:
$url= "http://www.urldiprova.it";
$urlHandle=fopen($url, "r");
$html=stream_get_contents($urlHandle);
// seguo la guida
$html = preg_replace_callback('#<(\w+)([^>]*)\s*/>#s', function($matches){
// ignore only these tags
$xhtml_tags = array('br', 'hr', 'input', 'frame', 'img', 'area', 'link', 'col', 'base', 'basefont', 'param' ,'meta');
// if a element that is not in the above list is empty,
// it should close like `<element></element>` (for eg. empty `<title>`)
return in_array($matches[1], $xhtml_tags) ? "<{$matches[1]}{$matches[2]} />" : "<{$matches[1]}{$matches[2]}></{$matches[1]}>"; }, $html);
$dom=new DOMDocument("1.0","utf-8");
$dom->loadHTML($html);
$dom->normalizeDocument();
header("Content-Type:text/html; charset=utf-8");
//visualizzo l'html o lo salvo in un file
echo $html = $dom->saveHTML(); //oppure $dom->saveHTML("fileName.html");
Comunque posto il link del thread dove ho trovato la soluzione:
http://stackoverflow.com/questions/1...th-domdocument
Ciao e grazie comunque.
Maurizio