Skip to content

prvTidyParseNamespace: Assertion `parent->tag != node->tag' failed. #308

@tspivey

Description

@tspivey

Tidy, latest master.
I get an assertion failure when tidying this article.
I've pared it down to this simple test case:

tyler@ubuntu:~$ echo "<svg><defs></g>" | tidy
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 1 - Warning: inserting implicit <body>
line 1 column 6 - Warning: replacing unexpected g by </g>
line 1 column 12 - Warning: discarding unexpected </g>
tidy: /home/tyler/tidy-html5/src/parser.c:1558: prvTidyParseNamespace: Assertion `parent->tag != node->tag' failed.
Aborted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions