Closed Bug 41742 Opened 26 years ago Closed 26 years ago

view source inserts DOCTYPE when not present

Categories

(Core :: DOM: HTML Parser, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: rickg)

Details

(Whiteboard: fix in hand.)

DESCRIPTION: When a document has no DOCTYPE, view-source inserts one (for HTML 4.0 Transitional) at the beginning of the document. STEPS TO REPRODUCE: * load attached testcase * choose View | Page Source ACTUAL RESULTS: * 2 lines, the first of which is a doctype declaration EXPECTED RESULTS: * 1 line, "<p>test</p>" DOES NOT WORK CORRECTLY ON: * Win98 mozilla 2000-06-09-M16 WORKS CORRECTLY ON: * NN 4.7 Win98
This is fixed in my tree, and will land in my next update.
Status: NEW → ASSIGNED
Whiteboard: fix in hand.
Removed code that erroneously inserted doctype.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
updated qa contact.
QA Contact: janc → bsharma
Verified on 2001-07-27-branch build on WinNT. Wrote a test case without a doctype and when saw the view-source, the doctype statement was not present.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.