mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-17 05:20:37 +01:00
* Fixed class cast error (THTMLDocument is not a descendant of THTMLCustomElement).
git-svn-id: trunk@21292 -
This commit is contained in:
parent
fedd899736
commit
c61c192c23
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user