Closed upsala closed 11 years ago
As the following code shows there seems a few properties from the object missing. PHP returns '1'. V8 returns 'undefined'.
<?php
$script=<<<EOT var elements=PHP.dom.getElementsByTagName('node'); print(elements.length, "\n"); EOT;
$dom=new DomDocument(); $dom->loadXML('');
$elements=$dom->getElementsByTagName('node'); echo $elements->length, "\n";
$v8=new V8Js(); $v8->dom=$dom; $v8->executeString($script);
?>
Fixed in master (by pull request #62).
I'm going to close this issue now.
As the following code shows there seems a few properties from the object missing. PHP returns '1'. V8 returns 'undefined'.
<?php
$script=<<<EOT var elements=PHP.dom.getElementsByTagName('node'); print(elements.length, "\n"); EOT;
$dom=new DomDocument(); $dom->loadXML(' ');
$elements=$dom->getElementsByTagName('node'); echo $elements->length, "\n";
$v8=new V8Js(); $v8->dom=$dom; $v8->executeString($script);
?>