Bug 4934

Summary: Bug editing table in designMode iFrame
Product: WebKit Reporter: Sam Schillace <sam>
Component: HTML EditingAssignee: Dave Hyatt <hyatt>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
bad file to edit... none

Sam Schillace
Reported 2005-09-11 11:02:46 PDT
Create a document with an iFrame in it, which has designMode enabled (I enable via JavaScript after page load). Make a table with 1 row, and two columns in it. Place the caret in the last cell of the table, at the end, and type - the text appears after the table, in the body of the document. This may happen only with certain documents. I'm enclosing one that breaks for me: <html> <head> <style>BODY, P, DIV, H1, H2, H3, H4, H5, H6, ADDRESS, OL, UL, LI, TITLE, TD, OPTION, SELECT { font-family: Times New Roman } BODY, P, DIV, ADDRESS, OL, UL, LI, TITLE, TD, OPTION, SELECT { font-size: 12pt; margin-top:0pt; margin-bottom:0pt; } BODY, P { margin-left:0pt; margin-right:0pt; } BODY { background: white; margin: 6px; padding: 0px; } ul { list-style-type: square } h6 { font-size: 10pt } h5 { font-size: 11pt } h4 { font-size: 12pt } h3 { font-size: 13pt } h2 { font-size: 14pt } h1 { font-size: 16pt } p { padding-top: 10px; padding-bottom: 10px; margin-top: 0px; margin-bottom: 0px } a img { border: 0; } table.zeroBorder { border-width: 1px 1px 1px 1px; border-spacing: 2px 2px; border-style: dotted dotted dotted dotted; border-color: gray gray gray gray; border-collapse: collapse; } table.zeroBorder th { border-width: 1px 1px 1px 1px; padding: 1px 1px 1px 1px; border-style: dotted dotted dotted dotted; border-color: gray gray gray gray; } table.zeroBorder td { border-width: 1px 1px 1px 1px; padding: 1px 1px 1px 1px; border-style: dotted dotted dotted dotted; border-color: gray gray gray gray; } .dragBox { background-color: #FFFFFF; border: 1px solid #000000; color: #000000; padding: 0px; position: absolute; } .dragBar { background-color: #008080; color: #ffffff; font-weight: bold; padding: 2px 1em 2px 1em; } .hiddenStyle { visibility: hidden; position: absolute; borderRight: black 1px solid; borderLeft: black 1px solid; borderTop: black 1px solid; borderBottom: black 1px solid; z-Index: 1; paddingRight: 0; paddingLeft: 0; paddingTop: 0; paddingBottom: 0; background: white } .misspell { background-image: url('images/misspell.gif'); background-repeat: repeat-x; background- position: bottom } </style></head> <body > <DIV class=Section1> <P> <SPAN class=Apple-style-span>Thanks for your reply. This is a test document which I <B>can?t upl </B></SPAN> </P> <P> ;oad to Writely. It tells me that the file is <B>cosdfrrupted</B>. sdfsdf </P> <P> window.console.log </P> <P> <SPAN class=Apple-style-span>GetRTEObject("rte1").getS<B>election().m</B>odify("extend", "right", "word");</SPAN> </P> <P> <SPAN class=Apple-style-span>http://www.op<B>ensource.a</B>pple.com/darwinsource/10.4.1/ WebCore-415.5/khtml/editing/selection.cpp</SPAN> </P> <P> <SPAN class=Apple-style-span>http://lxr.mozilla.org/<B>seamonkey</B>/sou<B>rce/co</ B>n<B>tent/ba</B>se/public/nsISelection.idl</SPAN> </P> <P> http://www.mozilla.org/docs/dom/domref/dom_range_ref.html#998975 </P> <P> GetRTEObject("rte1").document.createRange does work. This is the mozilla range, above. You can use it to do paste, etc. </P> <DIV> <BR class=khtml-block-placeholder> </DIV> <DIV> <B></B> <DIV> </DIV> <DIV> </DIV> <TABLE border=1 style="WIDTH: 542px; HEIGHT: 235px"> <TBODY> <TR> <TD> Heyasdasdas </TD> <TD> <DIV> <B>This asd is som<I>Hi Mom</I>e test text</B> </DIV> </TD> </TR> </TBODY> </TABLE> <DIV> <BR class=khtml-block-placeholder> </DIV> </DIV> <DIV> </DIV> </DIV></body> </html>
Attachments
bad file to edit... (3.28 KB, text/html)
2005-09-11 11:03 PDT, Sam Schillace
no flags
Sam Schillace
Comment 1 2005-09-11 11:03:54 PDT
Created attachment 3864 [details] bad file to edit... Note - if this doesn't reproduce for you, email me and I'll show you a live example.
Joost de Valk (AlthA)
Comment 2 2005-09-11 22:50:27 PDT
I don't understand shit of this bugreport :) Could you please clarify?
Joost de Valk (AlthA)
Comment 3 2005-12-19 14:48:18 PST
This sounds to me, on second review, like a duplicate of 3641, filing as such, if wrong, please spank me ;) *** This bug has been marked as a duplicate of 3641 ***
Note You need to log in before you can comment on or make changes to this bug.