[whatwg] Tendious use cases for <dialog>

Michel Fortin michel.fortin at michelf.com
Fri Mar 30 09:22:28 PDT 2007

Here are some various potential use cases for <dialog> I've collected  
and which I think are problematic with the way the <dialog> element  
is currently defined.

Regular dialogue:


IRC Logs:


Screenplay (not a dialogue in itself, but contains a couple of them):


  - - -

Adding specific elements for all these use cases is probably not  
going to be a good idea since there are too many of them. But I think  
allowing regular paragraphs in the content of <dialog> would be  
useful in a couple of cases. This is an excerpt from the first linked  
page formatted this way:


       <dt>FRIEND FROM WORK:</dt>
       <dd>I am the loudest! I am the loudest!</dd>

       <p>(Everybody laughs.)</p>

       <dd>I had a lot of wine, and now I’m crazy!</dd>


Formatted excerpt from second link (an IRC log):



       <dd>it worked</dd>

       <p class="action">caker closes out last bug</p>



These to examples are non-conformant according to the current spec. I  
won't say this is the ideal markup, but I think it's still better  
than opening and closing a dialog element each time you need a <p>  
element. Any better way to markup these?

Michel Fortin
michel.fortin at michelf.com

More information about the whatwg mailing list