Fixed infinity loop in some bad selectors.

For example:
  a['href']

This closes #84 issue on GitHub.
This commit is contained in:
Alexander 2021-04-16 21:54:10 +03:00
parent 393338d994
commit 81d5ed7afd

View File

@ -80,7 +80,7 @@ bool mycss_selectors_state_drop_component_value(mycss_entry_t* entry, mycss_toke
if(token->type == entry->selectors->ending_token) { if(token->type == entry->selectors->ending_token) {
if(mycss_entry_parser_list_current_is_local(entry) == false) { if(mycss_entry_parser_list_current_is_local(entry) == false) {
mycss_entry_parser_list_pop(entry); mycss_entry_parser_list_pop(entry);
return false; return true;
} }
} }