[Webkit-unassigned] [Bug 18423] InsertHtml command is adding <span class="Apple-style-span"> tags by itself

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 15 02:17:52 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18423





------- Comment #4 from martin at fckeditor.net  2008-04-15 02:17 PDT -------
I've found that in addition to adding unnecessary <span> tags, the bug is also
manipulating the DOM structure of the editable document in unexpected ways.

For example, if I had this HTML inside the editable frame:
<h3 style="color:red;">Hello <span id="abc"
style="color:green;">Wor</span>ld!</h3>

.. and inside the green text "Wor", insert the "<" symbol, then we'll have:
<h3 style="color:red;">Hello <span id="abc" style="color:green;">W<span
class="Apple-style-span" style="color: rgb(0, 0, 0); font-size: 16px;
font-weight: normal; "><<span class="Apple-style-span" style="color:
rgb(255, 0, 0); font-size: 19px; font-weight: bold; "><span id="abc"
style="color:green;">or</span>ld!</span></span></span></h3>

Notice that now we have two <span> tags with the id "abc". This is clearly
wrong.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list