[Webkit-unassigned] [Bug 59961] Implement webkit-defaultBlock execCommand, to let authors choose the default block element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 2 14:47:58 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=59961





--- Comment #3 from David Bloom <bloom at google.com>  2011-05-02 14:47:58 PST ---
(In reply to comment #2)
> It is, unfortunately, not that simple.  There are many places in our code base where the paragraph separator is assumed to be a div.  We'll have to go through editing code to find all those places and make sure to update them.
It is probably worth doing this anyway, since developers already are using workarounds to get <p> in many cases.
> 
> What is the syntax like?  execCommand("defaultBlock", false, "p"/"div")?
Yep.
> 
> Also, does Opera's implementation accept arbitrarily element other than p and div?  I don't want to have to test this function with every single block element if possible.
It only accepts "p" or "div" (case-insensitive). All other values are no-ops.
It also supports queryCommandValue, which will return either "p" or "div" (in lowercase).

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



More information about the webkit-unassigned mailing list