W3C home > Mailing lists > Public > www-html@w3.org > May 2009

form inside tabular data

From: Tei <oscar.vives@gmail.com>
Date: Mon, 18 May 2009 12:19:58 +0200
Message-ID: <a093da440905180319n494d9e55yc77596aa5d8d5bb9@mail.gmail.com>
To: www-html@w3.org
Hello,

I am a web author, and I am decide to raise a problem for the
examination of this mail list. I understand the purpose of this mail
list is to discuss changes on the standards, and my problem may need
that.


Problem:

you have lots of tabular data, that use <table> <tr> <td>.
every line on the table is a form

<tr>
<form><td><input type="text" name="price_21" value="5"
/></td><td><input type="submit" value="Change price for product 21"
/></td></form>
</tr>

Ouch!

<tr>
<td><form><input type="text" name="price_21" value="5"
/></td><td><input type="submit" value="Change price for product 21"
/></form></td>
</tr>

Ouch!


Proposed solution:
<tr>
<td><input type="text" form="product_21" name="price_21" value="5"
/></td><td><input type="submit" form="product_21" value="Change price
for product 21" /></td>
</tr>

...

<form id="producto_21"></form>

what?: it take a undefined state ( input widgets living outside form
blocks ) and add a key to attach these orphan widgets to a existing
form.

If theres a prefered solution available, whitin the current standards,
It will be much preferable, but is unknom to me, and to others web
authors asked about the topic.

Theres a alternate solution, that  use javascript,  but I prefered a
html-only solution.


-- 
--
ℱin del ℳensaje.
Received on Monday, 18 May 2009 10:21:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:15 GMT