Apologies for quoting the whole original article here, but those on 
servers with shorter expirations may want to see the example Robin 
provides.

Robin, at long last I have a fix for this problem: delete chomping 
entire blocks.  The situation only occurred when you had one block 
inside another (in your example a blockquote inside a blockquote) and 
deleted across the trailing boundary of the inner block.  Deleting 
across the leading boundary also caused problems, but very different 
ones (contents moving to incorrect place).

The deletion code in the html editor has never been adequately 
implemented for deleting across block boundaries.  Recently I've been 
working on getting the editor to rearrange the block structure of a 
document in some appropriate way when you backspace/delete across a 
block boundary.  As part of that work I have fixed the problem you 
describe here.  Expect to see this land in mozilla097.

cheers,
-joe

In article <[EMAIL PROTECTED]>, Robin Whittle 
<[EMAIL PROTECTED]> wrote:

> At the following page:
> 
> 
> http://gair.firstpr.com.au/temp/composer-bugs-2/delete-chomps-section-1.html
> 
> is a self-documenting example file I made with Mozilla 0.9.3 (Win2k) and
> after a few minutes of editing, what should have been a single character
> delete made a whole body of text above and below disappear.   I found
> this happens quite a lot with Mozilla - and the cursor may also fly to
> the start of the file, so I am in the habit of checking to see if
> anything disappeared and using Cntrl-Z to bring it back if so.
> 
> Here is a simplified section of the example file:
> 
> = = = = = 
> 
> <blockquote>blah blah blah blah blah blah blah blah blah blah blah 
> blah blah blah blah blah blah blah blah blah blah blah blah blah<br>
>   <br>
>   <blockquote>Anyone could use the source code to make their own
> programs, but if they released the program in any way, including by 
> selling it, they must: &nbsp;</blockquote>
> Make <i>all</i> their source code available under the same <br>
>     <br>
>     <br>
>     <br>
>     <br>
>     </blockquote>
> 
>     <br>
>     <br>
>     <br>
>     <br>
> </body></html>
> 
> = = = = = 
> 
> Placing the cursor at the "&nbsp;</blockquote>" section and pressing
> Delete causes the whole section to disappear.  Those indented <br> lines
> seem to result from me writing an indented paragraph, then doing a blank
> line, then another indented paragraph.  The spaces in the HTML file grow
> for each such paragraph.  Copy and paste doesn't have the same effect. 
> (This is with "Retain Original Source Formatting" but maybe that is not
> important.)
> 
> If someone tells me this is probably not covered by an existing bug, I
> will be happy to generate a bug for it.
> 
> 
> Thanks for Mozilla!  While there are problems to be resolved, I think
> Composer is an excellent, elegant HTML editor!
> 
> 
>    - Robin

-- 
jfrancis         .com      -and-     floppymoose         .net
        @netscape                               @netscape

Reply via email to