Bug in Opera

Jun 3, 2011 at 11:59 AM

1. Enter some text in textarea. Make it bold. Place cursor at the and of entered text and press "enter" once. Enter one more line of text.  It automatically will be bold. Now click on "switch to source". You will see the following:

[b]First text[/b]

[b]Second text
[/b]

Now remove[b][/b] tags from "Second text":

[b]First text[/b]

Second text

Switch back to Html preview.

Select "Second text" and make it bold. It will become bold. Now click on "switch to source" again. You will not find [b][/b] tags around "second text" anymore. When you return to html preview you will see that "second text" is not bold anymore. You can try to format "second text" again and again. All tags will be removed not only in "source". The same will happend if you save the text - "second text" will be saved without any formatting.

Try to format text, for example, in Firefox. Save the text. Load saved text in textarea for editing in Opera. Add one more line of text at the end. Any formatting will be removed from new added text if you see it in "preview" or save it.

 

One more thing. it's not only opera related. I don't understand why the script makes so many newlines in bbcode. For example:

[b]Second text
[/b]

 

Why it puts [/b] in a new line instead of end of the text?