W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2007

[whatwg] Tendious use cases for <dialog>

From: Michel Fortin <michel.fortin@michelf.com>
Date: Fri, 30 Mar 2007 12:22:28 -0400
Message-ID: <A2E125F4-1A6E-4A59-AEF6-C5F9205DE2C0@michelf.com>
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
Received on Friday, 30 March 2007 09:22:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC