Browse Source

* fixes

git-svn-id: trunk@4991 -
marco 19 years ago
parent
commit
2cb7566c23
1 changed files with 5 additions and 4 deletions
  1. 5 4
      fcl/xml/sax_html.pp

+ 5 - 4
fcl/xml/sax_html.pp

@@ -528,7 +528,8 @@ procedure THTMLToDOMConverter.ReaderEndElement(Sender: TObject;
   const NamespaceURI, LocalName, RawName: SAXString);
 var
   NodeInfo, NodeInfo2: THTMLNodeInfo;
-  i, j: Integer;
+  i : Integer;
+  j : THTMLElementTag;
   TagInfo: PHTMLElementProps;
 begin
   // WriteLn('End: ', LocalName, '. Node buffer: ', FNodeBuffer.Count, ' elements');
@@ -543,10 +544,10 @@ begin
       // We found the matching start tag
 
       TagInfo := nil;
-      for j := Low(HTMLElProps) to High(HTMLElProps) do
-        if CompareText(HTMLElProps[j].Name, LocalName) = 0 then
+      for j := Low(HTMLElementProps) to High(HTMLElementProps) do
+        if CompareText(HTMLElementProps[j].Name, LocalName) = 0 then
         begin
-          TagInfo := @HTMLElProps[j];
+          TagInfo := @HTMLElementProps[j];
           break;
         end;