Closed Bug 9787 Opened 26 years ago Closed 25 years ago

document.clear() function missing

Categories

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

All
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: selmer, Assigned: vidur)

Details

(Whiteboard: [TESTCASE][HAVEFIX])

Attachments

(1 file)

document.open(); document.clear(); ... do stuff ... document.close(); is a common idiom in pre 5.0 releases. In this release, document.clear() does not yet exist. At a minimum, it should exist and simply do nothing before returning. A better choice would be to see if the document has any content and remove it if there is any.
Component: Javascript Engine → DOM Level 0
QA Contact: cbegle → desale
hi steve! this is dom stuff so i'm re-componentizing.
Sorry, had to guess on the component since I didn't know.
Attached file Run this in 4.x and compare to 5.x (deleted) —
Whiteboard: TESTCASE
It'd be good to get this for beta; I think it's going to bite a lot of pages.
HTML DOM bugs are M11/P2 for Vidur.
Whiteboard: TESTCASE → [TESTCASE]
Target Milestone: M11 → M12
Moving to M12.
Blocks: 17907
Moving off M12 radar for the time being. One or more might get back once I get a chance to really look at them.
In an attempt to get my bug list in order again, marking all the bugs I have currently as ASSIGNED.
Whiteboard: [TESTCASE] → [TESTCASE][HAVEFIX]
Sorry this took so longer. Added document.clear(). It's waiting in my tree, probably till M13.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Implemented on 12/14/1999. Made it analogous to a document.open(). If the document is already opened, this will be a noop.
Status: RESOLVED → VERIFIED
Verified with 12-16-09.
No longer blocks: 17907
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: