xml elements context

This commit is contained in:
MihailRis
2024-03-19 14:54:50 +03:00
parent 4b6c61ad89
commit 8b8bc55ff7
6 changed files with 48 additions and 14 deletions
+7 -2
View File
@@ -196,8 +196,13 @@ xmlelement Parser::parseOpenTag() {
if (peek() == '=') {
nextChar();
skipWhitespace();
expect('"');
attrtext = parseString('"');
char quote = peek();
if (quote != '\'' && quote != '"') {
throw error("string literal expected");
}
skip(1);
attrtext = parseString(quote);
}
node->set(attrname, attrtext);
}