Closed Bug 38899 Opened 25 years ago Closed 21 years ago

incorrect type="text/css" added to head element

Categories

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

defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: Marko.Macek, Assigned: harishd)

Details

(Keywords: testcase, Whiteboard: [nsbeta3-])

Attachments

(2 files)

I have a HTML document (attached) with <style type="text/css"> inside the <body> element. When I load and save-as with the composer, the <style> is moved inside <head> (OK), but the <head> element itself gets an additional type="text/css" attribute (not OK). Tested on windows/linux with nightly build 2000050920. I have set component=Parser, not sure if this is correct.
Attached file small testcase - original (deleted) —
Attached file result saved from composer (deleted) —
this may be an editor issue; reassign to beppe, cc cmanske, akkana
Assignee: rickg → beppe
The STYLE element within the BODY element is invalid HTML. The STYLE element is a child of HEAD. The STYLE attribute is valid within BODY. However, moving the TYPE attribute from the STYLE element is something that needs to be addressed. Assigning this to Harish to see if the parser is doing something during the 'correction' phase.
Assignee: beppe → harishd
Sounds like a XIF DTD problem. Accepting bug.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → M18
Data corruption. should be addressed for nsbeta3.
Keywords: nsbeta3
This bug has been marked "future" because the original netscape engineer working on this is over-burdened. If you feel this is an error, that you or another known resource will be working on this bug,or if it blocks your work in some way -- please attach your concern to the bug for reconsideration.
Target Milestone: M18 → Future
Marking nsbeta3-
Whiteboard: [nsbeta3-]
Target Milestone: Future → mozilla0.8
Target Milestone: mozilla0.8 → Future
updated qa contact.
QA Contact: janc → bsharma
This also happens to http://cnn.com/ which does have a <STYLE>...</STYLE> inside the body element as of 7/29/01.
QA Contact: bsharma → moied
Keywords: testcase
Well, mozilla-1.0 / linux seems to have this fixed at least for my first testcase.
Works fine for testcase. http://cnn.com/ does not have STYLE in BODY now. -> WORKSFORME
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: