Open Bug 366423 Opened 14 years ago Updated 8 years ago

The "View HTML Source" check box doesn't work on the Mozilla midas demo page (importNode gives: Exception... "Access to property denied")

Categories

(Core :: DOM: Editor, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: dpopa, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

The "View HTML Source" checkbox doesn't work at http://www.mozilla.org/editor/midasdemo/



Reproducible: Always

Steps to Reproduce:
1.goto http://www.mozilla.org/editor/midasdemo/
2.type something in the editor
3.click the "View HTML Source" checkbox
Actual Results:  
Nothing happens.

You can see the following error in the "Error Console":

Error: uncaught exception: [Exception... "Access to property denied"  code: "1010" nsresult: "0x805303f2 (NS_ERROR_DOM_PROP_ACCESS_DENIED)"  location: "http://www.mozilla.org/editor/midasdemo/ Line: 388"]

At line 388 you have:

html = document.getElementById('edit').contentWindow.document.importNode(html,false);

Expected Results:  
I expect to see the HTML source code

All plugins are disabled.
I can reproduce this on 1.5.0 too.
WFM in latest trunk Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a2pre) Gecko/20070107 Minefield/3.0a2pre
OK, it works for me too in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a3pre) Gecko/20070211 Minefield/3.0a3pre

But not in 2.
QA Contact: editor
You need to log in before you can comment on or make changes to this bug.