mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 23:21:57 +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;
|
||||
|
||||
TXMLReadState = (rsProlog, rsDTD, rsRoot, rsEpilog);
|
||||
TXMLReadState = (rsProlog, rsDTD, rsAfterDTD, rsRoot, rsEpilog);
|
||||
|
||||
TElementContentType = (
|
||||
ctUndeclared,
|
||||
@ -2183,6 +2183,7 @@ begin
|
||||
end;
|
||||
ValidateDTD;
|
||||
FDocType.SetReadOnly(True);
|
||||
FState := rsAfterDTD;
|
||||
end;
|
||||
|
||||
procedure TXMLReader.ExpectEq; // [25]
|
||||
|
Loading…
Reference in New Issue
Block a user