ThomasWeinert/FluentDOM

$dom->find(':root')->append($first->find(":root"))->document->toHtml();` vs $('<div>').append('<input>')`

Closed this issue · 1 comments

\\FluentDOM
$first = FluentDOM::QueryCss('<input/>');
$second = FluentDOM::QueryCss('<div></div>');
echo $second->find(':root')->append($first->find(":root"))->document->toHtml();
$jQuery
$('<div></div>).append('<input/>');

The php version can be as simple as the js version.

Actually this are two issues. I split them:

https://github.com/FluentDOM/FluentDOM/issues/38
https://github.com/FluentDOM/FluentDOM/issues/39

Still have to think about the best way to implement them.