[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:54:13 PDT 2011


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





--- Comment #6 from Ryosuke Niwa <rniwa at webkit.org>  2011-05-02 14:54:12 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > 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).
> 
> What's the rationale for only allowing two of the available block elements?

Historically, browsers only supposed p, div, and br as a paragraph separator.  If we allowed some other elements, then websites have to deal with them and some block elements (e.g. ul, blockquote, etc...) also have some special rules (e.g. h1 can't be nested) and special style (ul > li will have a list marker).  So I think limiting to those two elements is a good thing.

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