[Webkit-unassigned] [Bug 12524] New: document.open() twice causes iframe to go blank

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 31 23:29:08 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12524

           Summary: document.open() twice causes iframe to go blank
           Product: WebKit
           Version: 419.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nrlz at hotmail.com


While trying to make a rich text editor, I found that calling
document.open/write/close twice and writing content which contains a <link
type=text/css> tag, will cause the editor to go blank (white). The editor
contents will only show if I click on it. If I focus away (to the address bar),
it goes blank again. If I change the iframe contents with innerHTML, it goes
blank again.

Specifically:

with(frames[0].document) {
  designMode = "on";

  open("text/html");
  write("<html>");
  write("<head><link type='text/css'></head>");
  write("<body bgcolor='#ffc'>editable text</body>");
  write("</html>");
  close();

  open("text/html");
  write("<html>");
  write("<head><link type='text/css'></head>");
  write("<body bgcolor='#ffc'>editable text</body>");
  write("</html>");
  close();
}


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list