mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:09:17 +02:00
xmlread.pp, r16175 caused a regression in level1/core/commentgetcomment; we should ignore comments in DTD, but not between DTD and root element. Fixed.
git-svn-id: trunk@16183 -
This commit is contained in:
parent
56cd935acf
commit
dfe1c0f228
@ -317,7 +317,7 @@ type
|
|||||||
|
|
||||||
TNodeDataDynArray = array of TNodeData;
|
TNodeDataDynArray = array of TNodeData;
|
||||||
|
|
||||||
TXMLReadState = (rsProlog, rsDTD, rsRoot, rsEpilog);
|
TXMLReadState = (rsProlog, rsDTD, rsAfterDTD, rsRoot, rsEpilog);
|
||||||
|
|
||||||
TElementContentType = (
|
TElementContentType = (
|
||||||
ctUndeclared,
|
ctUndeclared,
|
||||||
@ -2183,6 +2183,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
ValidateDTD;
|
ValidateDTD;
|
||||||
FDocType.SetReadOnly(True);
|
FDocType.SetReadOnly(True);
|
||||||
|
FState := rsAfterDTD;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TXMLReader.ExpectEq; // [25]
|
procedure TXMLReader.ExpectEq; // [25]
|
||||||
|
Loading…
Reference in New Issue
Block a user