Changes between Initial Version and Version 2 of Ticket #4054


Ignore:
Timestamp:
Aug 11, 2007, 2:34:26 AM (13 years ago)
Author:
bill
Comment:

The problem is only happening for me on FF/Mac but it's a race condition (on top of a firefox bug). I updated the bug description above to be more accurate.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4054

    • Property Summary changed from JS exception in Editor code on themeTester.html load (FF) to JS exception in Editor code on dojo.query() call: body not found
  • Ticket #4054 – Description

    initial v2  
    1 Breaks on line 647:
     1Problem when loading Editor with a stylesheet specified over http://, (not file://).  Happens in themeTester.html.  Breaks on line 647:
    22{{{
    33 dojo.query("body", this.document.documentElement)[0].innerHTML = html;
    44}}}
     5Problem is that this.document.documentElement.innerHTML at this point is
     6{{{
     7<head><style>body,html { background:transparent; padding: 0; margin: 0;}body{ top:0px; left:0px; right:0px;position: fixed; font:400 13px "Myriad Pro",Myriad,Arial,Helvetica,clean,sans-serif; min-height:1em; line-height:1.0}p{ margin: 1em 0 !important; }body > *:first-child{ padding-top:0 !important;margin-top:0px !important;}body > *:last-child { padding-bottom:0 !important; margin-bottom:0px !important;}li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } li{ min-height:1.2em; }</style>
     8<link rel="stylesheet" type="text/css" href="http://mac.local/0.9/dojo/resources/dojo.css"></head>
     9}}}
     10The <body></body> tags are getting cutoff even though we set them.
     11There's a line of code:
     12{{{
     13setTimeout(ifrFunc, 250);
     14}}}
     15If I change 250 to 5000 it works.
     16
     17But I wondering why we have to set innerHTML at all.   Why not just pass the body text to _getIframeDocTxt()?  Is it so we can reset the editor text from a setValue() call?