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
i just started using your html5-parser and i'm trying to load a fragment.
using the code shown in the wiki it's no problem:
require"vendor/autoload.php";
useMasterminds\HTML5;
$html5 = newHTML5();
// An example HTML fragment:$fragment = "<p>This is a test of the HTML5 parser.<p>";
$dom = $html5->loadHTMLFragment($fragment);
but when i try to parse other tags it's not working.
for example this code
require"vendor/autoload.php";
useMasterminds\HTML5;
$html5 = newHTML5();
// An example HTML fragment:$fragment = "<td>This is a test of the HTML5 parser.<td>";
$dom = $html5->loadHTMLFragment($fragment);
error shown:
Notice: Undefined property: DOMDocumentFragment::$tagName in C:\xampp\htdocs\html5\vendor\masterminds\html5\src\HTML5\Parser\TreeBuildingRules.php on line 138
hello,
i just started using your html5-parser and i'm trying to load a fragment.
using the code shown in the wiki it's no problem:
but when i try to parse other tags it's not working.
for example this code
error shown:
stacktrace:
The text was updated successfully, but these errors were encountered: