VN textbox event

This commit is contained in:
2023-05-21 15:11:51 -07:00
parent a64df032e2
commit a6ecdfd84d
11 changed files with 42 additions and 35 deletions

View File

@ -134,7 +134,7 @@ void Xml::load(Xml *xml, std::string data, size_t *j) {
case XML_PARSE_STATE_PARSING_VALUE:
// Keep parsing child until we find a < for an opening/closing tag.
if(c == '<') {
if(c == '<' && !(data[i] == '<' || data[i-2] == '<')) {
// In HTML Spec there could be a child here but not in XML spec.
doing = XML_PARSE_STATE_PARSING_CLOSE;
xml->value = buffer;