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

[whatwg] Structured option element

From: Filip Likavcan <filip.likavcan@gmail.com>
Date: Sat, 25 Aug 2007 19:57:43 +0200
Message-ID: <5b8d9b1c0708251057i5e5deb4al804b9fc9f9aed170@mail.gmail.com>

I would like to propose "structured" <option> element. The <option>
element is now described (=displayed in select box) only by simple
text value. The problem is, that in "real" world the option acts like
object with more properties. There are many cases in which options are
described by more than one property. For example the list of URL's in
the Firefox displays for each item its URL and page title. Another
example: I'm developing e-shop backend application for sellers. Seller
can create/edit an order, manage products on stocks and generate
invoices. When the seller wants to add new product into the order, it
is important for him to know how many products are there on each
stock. Products are displayed in <select> as its options. It would be
great if I could specify multiple properties for the option and the
interface would somehow reflect it. Something like this:

<select name="products">
  <option id="1">
    <property>Product's name</property>

[Product's name | X | Y | Z]

Where X, Y, Z represent the numbers of products on stocks. "|"
represents a column border. Columns should be displayed as columns in
tables (covering entire width of table, able to have specified exact
width, padding, ...).

Maybe this is already covered somehow. I tried to find something in
older e-mails in this mailinglist, but I haven't found anything.

Filip "filer" Likav?an
Received on Saturday, 25 August 2007 10:57:43 UTC

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