[Webkit-unassigned] [Bug 16555] execCommand doesn't work properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 21 05:14:28 PST 2007


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





------- Comment #1 from kupuguy at gmail.com  2007-12-21 05:14 PDT -------
N.B.: doc.document and doc.getDocument() in the quoted console session were
just two ways to get at the editable document object.

indent and outdent don't work either.
Here is another console session:

doc.document
[object HTMLDocument]
doc.document.body.innerHTML
<p>line 1</p>
<p>line 2</p>
<p>line 3</p>
<p> </p>
doc.document.execCommand("indent", false, false)
1
doc.document.body.innerHTML
<p>line 1</p>
<blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border:
none; padding: 0px;"><span class="Apple-style-span" style="color: rgb(0, 0, 0);
line-height: 18px; ">line 2</span></blockquote>
<p>line 3</p>
<p> </p>
==================
at this point it should have been:
<blockquote><p>line 2</p></blockquote>

Now let's try an outdent and hope to see our clean <p> back:
========================================
doc.document.execCommand("outdent", false, false)
1
doc.document.body.innerHTML
<p>line 1</p>
<span class="Apple-style-span" style="color: rgb(0, 0, 0); line-height: 18px;
">line 2</span>
<p>line 3</p>
<p> </p>
======================
Nope, the paragraph is gone. So is the semantic meaning of that line.


-- 
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