When bug 132133, it ensured that the last node in non-empty non-single-line editors would be a <br> node. However, it proves very persistent - when all other content is removed from the tree, and it no longer serves any purpose, it should go away, and the special "bogus node" should reappear. Instead it sticks around. Consequences of this include: - documentIsEmpty reporting the wrong value - deleting text in a <textarea> by a) manually backspacing through the text and b) select all followed by cut lead to different DOM trees
Created attachment 367636 [details] [diff] [review] Patch Proposed fix
Created attachment 552737 [details] [diff] [review] Updated patch The patch looked good, I just updated it to apply cleanly on trunk. I'll land it on mozilla-inbound.