This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 857 - DOCTYPE Override should take XML Decl into account.
Summary: DOCTYPE Override should take XML Decl into account.
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.7.0
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
Depends on:
Blocks: 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:


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.