This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15527 - Allow div (and maybe br) as a paragraph separator
Summary: Allow div (and maybe br) as a paragraph separator
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - HTML Editing APIs (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: Aryeh Gregor
QA Contact: HTML Editing APIs spec bugbot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 20:52 UTC by Aryeh Gregor
Modified: 2012-02-24 20:48 UTC (History)
6 users (show)

See Also:


Attachments

Description Aryeh Gregor 2012-01-11 20:52:51 UTC
See discussion: http://lists.w3.org/Archives/Public/public-webapps/2012JanMar/0045.html and responses.
Comment 1 Aryeh Gregor 2012-02-24 17:47:13 UTC
Okay, so I'm going to implement this now.  I'll make it a command called defaultBlock, which will only take values "div" and "p".  I've seen no good use-cases yet for br over div, and a br option would make things significantly more complicated.

Really I'd like to fix bug 15522 first (allow execCommand on Element), so that this command can be scoped.  But I don't view that as a blocker, and it would be added complication, so I won't.  (I'd have to fix about a million references to "the context object".)

This will probably double the number of tests that get run.  :(
Comment 2 Ryosuke Niwa 2012-02-24 18:45:18 UTC
Can we use defaultParagraphSeparator or something along that line? We have both InsertParagraph and InsertLineBreak and this command should only change what the former command inserts. defaultBlock sounds too generic to me.
Comment 3 Aryeh Gregor 2012-02-24 18:54:58 UTC
Okay.  No objection from me.
Comment 4 Ryosuke Niwa 2012-02-24 18:56:46 UTC
(In reply to comment #1) 
> Really I'd like to fix bug 15522 first (allow execCommand on Element), so that
> this command can be scoped.  But I don't view that as a blocker, and it would
> be added complication, so I won't.  (I'd have to fix about a million references
> to "the context object".)

Yeah, fixing that bug will be great.
Comment 5 Aryeh Gregor 2012-02-24 19:27:03 UTC
Tell you what: implement these two spec changes, and then you can ask me for more changes.  :)
Comment 6 Aryeh Gregor 2012-02-24 20:48:32 UTC
Fixed: http://dvcs.w3.org/hg/editing/rev/b35a81679b49