You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
similar to other jQuery PHP implementation, I expect to get <div>s</div> but it returns a complete document:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><div>s</div></body></html>
and I have to use qp('<div>s</div>')->top('body *')->html(); which is cumbersome. In particular when use what to build several section of a page programmatically and merge them
The text was updated successfully, but these errors were encountered:
salarmehr
changed the title
Could not crate partial dom
How to create HTML tags?
Mar 19, 2016
You may also consider switching the parser to the HTML5 one. It's less picky than the built-in libxml html 4 parser. I can't remember if it will make a difference, but you can try html5() instead of html and see if that helps.
Running
similar to other jQuery PHP implementation, I expect to get
<div>s</div>
but it returns a complete document:and I have to use
qp('<div>s</div>')->top('body *')->html();
which is cumbersome. In particular when use what to build several section of a page programmatically and merge themThe text was updated successfully, but these errors were encountered: