I tried to get a loaded and with Javascript manipulated HTML dom, with PHP. But it only returns the documents content.
For me it seems to be, that theres no solution :(
Example:
index.php
$dom = new DOMDocument();
$dom->load('test.html');
$html = $dom->getElementsByTagName("html")->item(0);
echo $html->nodeValue;
Result:
title
var test = document.createElement("div");
test.innerHTML = "test";
document.body.appendChild(test);
I try all to get this result:
<head>
<title>title</title>
</head>
<body>
<div>test</div>
</body>