mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 16:49:23 +02: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,7 +132,10 @@ begin
|
|||||||
if assigned (d) then
|
if assigned (d) then
|
||||||
begin
|
begin
|
||||||
result := THTMLCustomElement(d);
|
result := THTMLCustomElement(d);
|
||||||
FCurrentElement := THTMLCustomElement(result.ParentNode);
|
if result.ParentNode = FDocument then
|
||||||
|
FCurrentElement := nil
|
||||||
|
else
|
||||||
|
FCurrentElement := THTMLCustomElement(result.ParentNode);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
raise HTMLWriterException.CreateFmt (sErrNoCorespondingParent, [tag.ClassName]);
|
raise HTMLWriterException.CreateFmt (sErrNoCorespondingParent, [tag.ClassName]);
|
||||||
|
Loading…
Reference in New Issue
Block a user