W3C home > Mailing lists > Public > public-html-comments@w3.org > August 2012

Datalist pollute the DOM

From: Fred . <eldmannen@gmail.com>
Date: Thu, 30 Aug 2012 16:28:07 +0200
Message-ID: <CAJgfmqXiqbZSfHifUn=3x_okbatEfT5LSfgPgE7qF2wYMLdN6A@mail.gmail.com>
To: public-html-comments@w3.org
So I have to do <option>Foo</option>
Repeat that 1000 times, and I have massively polluted my DOM with elements.
Also I want transfer Foo which is 3 bytes, but then I have to transfer
opening and closing tags and that takes lots of bandwidth when you
multiply that by 1000.

You should be able make the client fetch the datalist from the server.
And the server send a CSV or something "Alice,Bob,Clare,Dave,Eve,..."
Received on Thursday, 30 August 2012 14:28:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:28 UTC