Closed Bug 483908 Opened 15 years ago Closed 5 years ago

document.open should reset the compatMode to BackCompat (quirks mode) to match IE

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: eric, Unassigned)

References

Details

(Keywords: html5, testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7 GTB3

document.open should reset the DocType to BackCompat (quirks mode) to match IE

As part of fixing:
https://bugs.webkit.org/show_bug.cgi?id=24336
for WebKit, I discovered that Gecko does not match IE and WebKit by resetting the DocType BackCompat after a document.open.

See attached test case.

Reproducible: Always
When running the test case with a recent (2.0b3pre (1.9.0.8pre 2009031706)) nightly Camino build under PPC Mac 10.4.11, the first two tests "PASS", and the last three tests "FAIL", FWIW.
Actually, after further testing, I'm not sure document.open() clears the document at all (as it does in IE and WebKit)
That's bug 325352.
Component: General → DOM: Core & HTML
Keywords: testcase
OS: Mac OS X → All
QA Contact: general → general
Hardware: x86 → All
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Depends on: 325352
Ever confirmed: true
Keywords: html5
Summary: document.open should reset the DocType to BackCompat (quirks mode) to match IE → document.open should reset the compatMode to BackCompat (quirks mode) to match IE
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5

Invalid per current document.open spec. In fact, we now want to reset it back to standards mode. See bug 1489308 comment 0 third bullet point.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: