Modern DOM library written in PHP for HTML documents
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 lines
1.4 KiB

#fragment
| <html>
#output
<html></html>
#document
| <!-- data -->
| <!DOCTYPE html>
| <html>
#output
<!--data-->
<!DOCTYPE html>
<html></html>
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
#output
<!DOCTYPE html>
<html>
<head></head>
<body></body>
</html>
#document
| <html>
| <body>
| <pre>
| <code>
#output
<html>
<body>
<pre><code></code></pre>
</body>
</html>
#document
| <html>
| <body>
| <svg>
#output
<html>
<body><svg></svg></body>
</html>
#fragment
| <body>
| <div>
| <svg svg>
#output
<body>
<div></div>
<svg></svg>
</body>
#fragment
| <body>
| <div>
| <svg svg>
| <svg tspan>
#output
<body>
<div></div>
<svg>
<tspan/>
</svg>
</body>
#document
| <!DOCTYPE html>
| <html>
| "
"
| <head>
| <body>
| "ook
"
#output
<!DOCTYPE html>
<html>
<head></head>
<body>ook
</body>
</html>
#fragment
| <div>
| <div>
| "
"
#output
<div>
<div></div>
</div>
#fragment
| <div>
| <a>
| <div>
| <svg>
#output
<div>
<a>
<div></div>
</a>
<svg></svg>
</div>
#fragment
| <div>
| <!-- data -->
| <div>
#output
<div>
<!--data-->
<div></div>
</div>
#fragment
| <div>
| <div>
| <!-- data -->
| <div>
#output
<div>
<div></div>
<!--data-->
<div></div>
</div>
#fragment
| <div>
| <div>
| <?php echo "Hello world!"; ?>
| <div>
#output
<div>
<div></div>
<?php echo "Hello world!"; ?>
<div></div>
</div>