Skip to content

DOMDocument::createElementNS(): Namespace Error #1

Description

@johnnye

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;
        }

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