Firebug and _moz_dirty

I am developing a Javascript application that will wrap every line of text entered inside an iframe (designmode) with P (or div), as it does by default in IE.

At the moment, I am not inserting my code because I just started, the first problem is that I am typing in firefox and even before I press the enter button or call any firebug inserts function

<br _moz_dirty="">

under the entered text.

Why? How can I prevent this?

If you still need my code, please let me know.

+3
source share
4 answers

_moz_ -rerefix, Mozilla. Firebug, Gecko. ; .

+1
#myEditableDiv br {display:none;}

, Mozilla , .

: , , ?
+1

_moz_dirty , node , , -, SeaMonkey Composer SeaMonkey Thunderbird HTML Message Compose.

+1

The Gecko editor used it because he needed to let him place the cursor somewhere. I believe this is fixed in Firefox 4.

0
source

Source: https://habr.com/ru/post/1748881/


All Articles