Skip to content

DomCrawler: parsing warning while parsing html5 #1733

@stoefln

Description

@stoefln

Hi there!

when i try to load and crawl html with goutte (with behat/mink) i get warnings for each element which is not XHTML4 compliant (e.g. html5 "nav" tags or "fb:like" tags):

"DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 100 in /Library/WebServer/Documents/eventiply/vendor/symfony/src/Symfony/Component/DomCrawler/Crawler.php on line 117"

in order to get a real stacktrace, i had to remove the "@" before "$dom->loadHTML($content);" in line 117 of Symfony\Component\DomCrawler\Crawler.php

HTML is here: https://gist.github.com/1090716

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions