* Fixed class cast error (THTMLDocument is not a descendant of THTMLCustomElement).

git-svn-id: trunk@21292 -
This commit is contained in:
sergei 2012-05-14 13:28:52 +00:00
parent fedd899736
commit c61c192c23

View File

@ -132,6 +132,9 @@ begin
if assigned (d) then
begin
result := THTMLCustomElement(d);
if result.ParentNode = FDocument then
FCurrentElement := nil
else
FCurrentElement := THTMLCustomElement(result.ParentNode);
end
else