Bug 857 - DOCTYPE Override should take XML Decl into account.
: DOCTYPE Override should take XML Decl into account.
Status: RESOLVED FIXED
Product: Validator
check
: 0.7.0
: All All
: P2 enhancement (vote)
: ---
Assigned To: Olivier Thereaux
: qa-dev tracking
: http://validator.w3.org/check?fragmen...
:
:
:
: 740
  Show dependency treegraph
 
Reported: 2004-09-01 11:09 UTC by Terje Bless
Modified: 2008-12-01 03:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Terje Bless 2004-09-01 11:09:08 UTC
cf. Bug #740.

The DOCTYPE Override feature should take any existing XML Declaration into
account when inserting a new DOCTYPE into a file that does not allready have
one. If the original has a DOCTYPE, the override should continue to insert
the new DOCTYPE in the same place as the original, regardless of any XML Decl.
Comment 1 Olivier Thereaux 2007-09-07 07:31:12 UTC
looking at sub override_doctype and applying karl's idea that the doctype
declaration we sneak in should not be at the beginning of the doc, but rather,
just before the root element.