Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOMDocument::createElementNS(): Namespace Error #1

Open
johnnye opened this issue Jul 25, 2013 · 1 comment
Open

DOMDocument::createElementNS(): Namespace Error #1

johnnye opened this issue Jul 25, 2013 · 1 comment

Comments

@johnnye
Copy link

johnnye commented Jul 25, 2013

Occasionally we get an error when this is parsing a site (for instance http://cheesenbiscuits.blogspot.co.uk/)

The error occurs in TreeBuilder.php on line 3160

A quick hack is to wrap this line a catch and carry on, although this should be considered a hack.

try{
        $el = $this->dom->createElementNS(self::NS_HTML, $token['name']);
        }catch(Exception $e){
            //var_dump($token);
            return;
        }
@sterichards
Copy link

WTF?

I've was experiencing the same problem and using try catch fixed it? :s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants