lexborisov / myhtml

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

myhtml_token_node_attribute_last() returns first attribute #177

Closed Jean-Daniel closed 4 years ago

Jean-Daniel commented 5 years ago

The implementation error should be obvious enough.

myhtml_tree_attr_t * myhtml_token_node_attribute_last(myhtml_token_node_t *token_node)
{
    return token_node->attr_first;
}
lexborisov commented 4 years ago

@Jean-Daniel Thanks for the report!