lexborisov / myhtml

Fast C/C++ HTML 5 Parser. Using threads.
GNU Lesser General Public License v2.1
1.66k stars 147 forks source link

Fixing issue #187 #188

Closed Azq2 closed 2 years ago

Azq2 commented 3 years ago

Fixing lost MyHTML_TOKEN_TYPE_DONE flag for invalid tag <br>

Azq2 commented 3 years ago

@lexborisov Hello! Can you merge it?

lexborisov commented 3 years ago

Hi @Azq2

Can you give an example of bad HTML?

Azq2 commented 3 years ago

@lexborisov You can see example in this issue: https://github.com/lexborisov/myhtml/issues/187

lexborisov commented 3 years ago

@Azq2

Sorry for the late reply. A lot of work.

Сorrect fix:

                myhtml_token_node_wait_for_done(tree->token, token);

                token->type = MyHTML_TOKEN_TYPE_OPEN | MyHTML_TOKEN_TYPE_DONE;

Could you change the pull request?