Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
33
core/vendor/masterminds/html5/example.php
vendored
33
core/vendor/masterminds/html5/example.php
vendored
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
|
||||
require "vendor/autoload.php";
|
||||
use Masterminds\HTML5;
|
||||
|
||||
|
||||
$html = <<< 'HERE'
|
||||
<html>
|
||||
<head>
|
||||
<title>TEST</title>
|
||||
<script language="javascript">
|
||||
if (2 > 1) { alert("Math wins."); }
|
||||
</script>
|
||||
</head>
|
||||
<body id='foo'>
|
||||
<!-- This space intentionally left blank. -->
|
||||
<section class="section-a pretty" id="bar1">
|
||||
<h1>Hello World</h1><p>This is a test of the HTML5 parser.</p>
|
||||
<hr>
|
||||
& Nobody nowhere.
|
||||
</section>
|
||||
<test xmlns:foo="http://example.com/foo">TEST</test>
|
||||
<![CDATA[Because we can.]]>
|
||||
©
|
||||
</body></html>
|
||||
HERE;
|
||||
|
||||
$html5 = new HTML5();
|
||||
$dom = $html5->loadHTML($html);
|
||||
|
||||
print "Converting to HTML 5\n";
|
||||
|
||||
$html5->save($dom, fopen("php://stdin", 'w'));
|
Reference in a new issue