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

CDATA hang #156

Closed
weasel009 opened this issue Sep 5, 2018 · 2 comments
Closed

CDATA hang #156

weasel009 opened this issue Sep 5, 2018 · 2 comments

Comments

@weasel009
Copy link

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!

@lexborisov
Copy link
Owner

Hello @weasel009 !
I understood what the problem is, tomorrow I'll try to fix it.
Thanks!

@lexborisov
Copy link
Owner

@weasel009
Fixed in c97bfba commit.

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