Closed Bug 301019 Opened 19 years ago Closed 19 years ago

If i write a javascript code its is riported in the pages of the same tab

Categories

(Core :: DOM: Editor, defect)

1.7 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 198155

People

(Reporter: fr4style, Assigned: mozeditor)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5

If i write a page as its: 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<script language="JavaScript">
	
	document.designMode = "on";
	
	document.write(document.designMode);
	

</script>
</body>
</html>

After i would like to go to an other site in the same tab where i open these
script, i can modify the page as a Rich text document.

The problem is the javascript method  designMode() that is riported in all page
if i don't close Firefox Windows.


Reproducible: Always

Steps to Reproduce:
1.Open a page test.html with this javascript:
<script language="JavaScript">
	document.designMode = "on";
	document.write(document.designMode);
</script>
2. In the same windows go to an other page as: http://www.google.it
3. Now it's possible to modify all text and images of the page

Actual Results:  
Now it's possible to modify all text and images of the page

Expected Results:  
I will open the page in the correct way
Attached file Testcase
Testcase for the lazy to test the bug and try and confirm it because i
couldn't.

WFM
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050716
Firefox/1.0+
-> core/editor
Assignee: nobody → mozeditor
Component: JavaScript Console → Editor
Product: Firefox → Core
QA Contact: javascript.console
Version: unspecified → 1.7 Branch

*** This bug has been marked as a duplicate of 198155 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: