|
@@ -531,6 +531,7 @@ var
|
|
i : Integer;
|
|
i : Integer;
|
|
j : THTMLElementTag;
|
|
j : THTMLElementTag;
|
|
TagInfo: PHTMLElementProps;
|
|
TagInfo: PHTMLElementProps;
|
|
|
|
+
|
|
begin
|
|
begin
|
|
// WriteLn('End: ', LocalName, '. Node buffer: ', FNodeBuffer.Count, ' elements');
|
|
// WriteLn('End: ', LocalName, '. Node buffer: ', FNodeBuffer.Count, ' elements');
|
|
// Find the matching start tag
|
|
// Find the matching start tag
|
|
@@ -544,7 +545,7 @@ begin
|
|
// We found the matching start tag
|
|
// We found the matching start tag
|
|
|
|
|
|
TagInfo := nil;
|
|
TagInfo := nil;
|
|
- for j := Low(HTMLElementProps) to High(HTMLElementProps) do
|
|
|
|
|
|
+ for j := Low(THTMLElementTag) to High(THTMLElementTag) do
|
|
if CompareText(HTMLElementProps[j].Name, LocalName) = 0 then
|
|
if CompareText(HTMLElementProps[j].Name, LocalName) = 0 then
|
|
begin
|
|
begin
|
|
TagInfo := @HTMLElementProps[j];
|
|
TagInfo := @HTMLElementProps[j];
|