This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
See discussion: http://lists.w3.org/Archives/Public/public-webapps/2012JanMar/0045.html and responses.
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. :(
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.
Okay. No objection from me.
(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.
Tell you what: implement these two spec changes, and then you can ask me for more changes. :)
Fixed: http://dvcs.w3.org/hg/editing/rev/b35a81679b49