Fix typo in html-text-parser.ts (#16625)

Co-authored-by: Elias Griffith <11166320+bb00@users.noreply.github.com>
This commit is contained in:
minggo
2023-12-19 15:39:19 +08:00
committed by GitHub
parent 7759568a07
commit cfccc5d2af
+3 -3
View File
@@ -131,7 +131,7 @@ export class HtmlTextParser {
let header = /^(color|size)(\s)*=/.exec(attribute);
let tagName = '';
let nextSpace = 0;
let eventHanlderString = '';
let eventHandlerString = '';
if (header) {
tagName = header[0];
attribute = attribute.substring(tagName.length).trim();
@@ -158,8 +158,8 @@ export class HtmlTextParser {
// tag has event arguments
if (nextSpace > -1) {
eventHanlderString = attribute.substring(nextSpace + 1).trim();
obj.event = this._processEventHandler(eventHanlderString);
eventHandlerString = attribute.substring(nextSpace + 1).trim();
obj.event = this._processEventHandler(eventHandlerString);
}
return obj;
}