Closed Bug 30846 Opened 25 years ago Closed 25 years ago

doctype declaration tag gets corrupted on input

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: Jos.vandenOever, Assigned: harishd)

References

()

Details

(Keywords: regression, Whiteboard: [PDT+] w/b minus on 03/10 - fix in hand.)

Attachments

(4 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; N; NT4.0; en-US) Mozilla/m13 BuildID: 2000022820 The first tag in a HTML page, the DOCTYPE tag, is changed by Mozilla editor to a nonsensical version by changing `>' into `&gt;(newline)>' Reproducible: Always Steps to Reproduce: 1. open mentioned file 2. `edit page' 3. `save as ...' 4. look at code difference Actual Results: The first tag in the mentioned file was originally <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> after opening and saving in the editor it was <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; > including the newline and the &gt; The &gt; is the main problem. It shouldn't be there. Expected Results: The tag shouln't have been changed at all. Or even better, Mozilla should use it to determine the features allowed in the editor, but is probably asking too much.
reassign to akkana for initial investigation nominate for beta1 since this is corruption of data (standards data no less!) and a regression Sujay--can you narrow down when this broke?
Assignee: brade → akkana
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: beta1, regression
OS: Windows NT → All
Hardware: PC → All
Summary: doctype declaration tag gets mangled on input → doctype declaration tag gets corrupted on input
Target Milestone: M14
checking...
I think I know what the problem ( &gt )is and should be able to fix it of the parser end. As for the extra newline..I have no idea..
Thanks, Harish! Let me know when you have the &gt patch, and if you need help testing; and if you're still seeing the extra newline at that point, pass it back to me and I'll track that part down.
Assignee: akkana → harishd
The patch builds fine on linux and does solve the problem. The newline is still there -- I'll look at that -- but we should definitely take Harish's fix for the beta.
Putting on PDT+ radar for beta1. Will be minus if not fixed by 03/10.
Whiteboard: [PDT+] w/b minus on 03/10 - fix in hand.
The revised patch (03/10/00 10:41) looks fine on linux, and does fix both newline and &gt problems.
Harish, What held up the landing? I see a reviewed fix in hand... but no landing. Has it been tested? Is there a landing plan? I'll hold off transitioning to PDT- to get some feedback here. The beta date is commin', and it won't wait. Thanks, Jim (past 3/10...) Roskind
Fix is in ( Both on the TIP and the BRANCH ). Marking FIXED.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
OKAY, now I see a little box at the end of the doctype declaration tag. Harish said to REOPEN this one....let me know if you want me to file a new bug instead...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
okay, found it. The problem is caused in CDoctypeDeclToken::Consume(). Where, while consuming the doctype string, we are also including '\r','\n' etc., that preceed the DOCTYPE tag. This is the reason behind the wierdness.. FYI: This problem actually got masked by the actual 30846 bug. but now....it's exposed :) Adding rickg....because per. cvs log, he touched this method ( in question ) last. Waiting for rickg's comments.
Status: REOPENED → ASSIGNED
for me it's fixed in build 2000031317
resolving this as fixed based on comments by Jos.vandenOever@fenk.wau.nl Sujay will verify
Status: ASSIGNED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
btw, Sujay if you still see the problem, could you clarify if the problem is on just one platform or every platform?
verified in 3/14 build. filing new bug for the box issue...
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: