Skip to content

CDATA hang #156

Closed
Closed
@weasel009

Description

@weasel009

Hi Alexander,

It appears that the tokenizer hangs if <![CDATA[ shows up in HTML.
tokenizer.c:

    // CDATA sections can only be used in foreign content (MathML or SVG)
    if(strncmp(tagname, "[CDATA[", 7) == 0) {
        if(tree->current_qnode->prev && tree->current_qnode->prev->args)
        {
            myhtml_tree_wait_for_last_done_token(tree, tree->current_qnode->prev->args);
            myhtml_tree_node_t *adjusted_current_node = myhtml_tree_adjusted_current_node(tree);

I attach a sample file to reproduce the problem.
fourmilab-ch-babbage-pascal.txt

Regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions