aboutsummaryrefslogtreecommitdiff
path: root/src/form.cc
AgeCommit message (Collapse)Author
2013-09-20Refactoring: some useful shortcuts in DilloHtml.Sebastian Geerken
2013-09-10Some refactoring: the image decoding code now only accesses ↵Sebastian Geerken
dw::core::ImgRenderer, not dw::Image (which now implements the former) anymore.
2013-09-06html5, cols/rows not required for TEXTAREAcorvid
2013-09-05rm optgroup MSGcorvid
2013-09-05html5, don't complain about unknown input typecorvid
...now that there's tel, url, email, datetime, date, month, week, time, datetime-local, number, range, color (all of which I imagine we will continue to regard as 'text').
2013-08-07Add nested inputs cleanup and handling.Jorge Arellano Cid
This patch avoids a family of problems that arise from handling nested inputs. from invalid memory access up to crashes. e.g. details in bof-read-47_attachView.html.asan. This patch is much wider than the above referred instance.
2013-04-20OPTION label attributecorvid
It is said that this is typically only useful when OPTGROUP is working (OPTGROUP gives context, and label will be something shorter than the OPTION's contents). It is also said that browsers don't or didn't tend to use an OPTION's label. *shrugs*
2013-04-20implement OPTGROUP in src/corvid
I wrote nearly all of this last year, and I've just been going back over it now. As I recall, I initially also tried: select holds optgroups and options, and optgroups hold options (instead of this flat array of options, optgroups, and close-optgroups), but the code wasn't coming out any cleaner, so...
2013-01-14Remove ancient commented-out GTK code.Jeremy Henty
2012-12-15finish option as soon as we see the close tagcorvid
I was just looking at distrowatch, and noticed that a menu looked odd. It turns out that their code goes like Amarok Live<option value="amaroklive">Amarok Live</option> Amber<option value="amber">Amber</option> Ankur Bangla<option value="ankur">Ankur Bangla</option> Annvix<option value="annvix">Annvix</option> AnNyung<option value="annyung">AnNyung</option> Anonym.OS<option value="anonymos">Anonym.OS</option> for some crazy reason. This led to dillo showing labels like "AnNyung Anonym.OS".
2012-12-10background style for <button> widgetcorvid
To fix box colors...
2012-12-04form submission: try to transliterate datacorvid
Unilaterally changing user data is consistently a bad idea, but when browser users aren't given any idea what they are permitted to type, it's better than leaving out the chars, or replacing with '?' or whatever.
2012-12-04form encoding MSGscorvid
2012-12-04update form-data commentarycorvid
As of a couple of years ago, there was talk and confusion over whether rfc 2231 should be used, or rfc 2047. But now... *sigh*
2012-11-28Merge.Sebastian Geerken
2012-11-28don't require an item selected for SELECT size>1 non-multiplecorvid
This had been discussed a bit a few years ago. At the time, the html4 spec's idea was that you probably should require one but that implementations varied on the details. These days, firefox doesn't, and html5 mostly tells you not to (and is clear that you can deselect the only selected one). (The world's biggest document, practically a browser written in english at the instruction level, and it still has many cases that aren't considered and spelled out carefully at this point.)
2012-11-27Merge.Sebastian Geerken
2012-11-26rm unused arg to TagCloseFunctcorvid
2012-11-25rm old commentcorvid
2012-11-25and now we can implement maxlengthcorvid
2012-11-24reset for <select>corvid
2012-11-14Cleaned up preferences.Sebastian Geerken
2012-11-08Making hyphen penalties configurable.Sebastian Geerken
2012-09-20BUG_MSG consistencycorvid
2012-09-13tooltips on some other elements where they are commonly foundcorvid
(span, div, select, button)
2012-01-30rework image handling codeJohannes Hofmann
Properly separate common image handling functions in CSS relevant attribute parsing (a_Html_image_attrs) and image creation (a_Html_image_new()). This should also bring the code back a bit to what we had before 8214199c2703.
2012-01-21add support for the CSS display: propertyJohannes Hofmann
2011-11-11locale-independent ASCII character case handlingcorvid
Basically, I and i are different letters in Turkic languages, and this causes problems for str(n)casecmp and toupper/tolower in these locales when dillo is dealing with ASCII.
2011-10-20add a text input when input type is not recognizedcorvid
bug #1018 submitter requested behaviour a little more friendly to html5, which sounds sensible as bits of that infinite monstrosity start showing up more often...
2011-09-06avoid redraw loops with ComplexComplexButtonResourceJohannes Hofmann
ComplexButtonResource was creating endless redraws. Testcase: <table> <tr> <td> <div> <button></button> </div> <div> words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words <span style="white-space:nowrap">And words in a span</span> <button></button> </div> </td> </table> This also fixes redraw loops with <button> in combination with limit_text_width=YES, so we no longer need to disable this option. Reported and testcase by: corvid <corvid@lavabit.com>
2011-07-22rm commentcorvid
2011-05-16only disable the inputs outside of forms if stylesheets are pendingcorvid
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-March/007408.html http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-May/008319.html
2010-12-15silence a couple of MSGscorvid
2010-10-11rework nonCssHints API of StyleEngineJohannes Hofmann
* Instead of passing the nonCssHints as a CssPropertyList, set the hints separately and create the list in StyleEngine. * The CssPropertyList holding the nonCssHints is now completely managed by StyleEngine and kept on the stack. * Replace the table_cell_props mechanic in html.cc/table.cc with a new method inheritNonCssHints() in StyleEngine.
2010-04-22check for title attr for INPUT elementcorvid
seems reasonably common for INPUT to have one
2010-03-29Disable inputs that aren't inside a form.corvid
Rogutės was able to get a crash by using a SELECT outside of a form before a stylesheet-induced repush() http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-March/007407.html (Earlier thread where inputs in forms were disabled when stylesheets pending: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-April/006310.html )
2009-11-27no longer include nav.h from form.ccJohannes Hofmann
2009-11-27adjust focus handling with new tabs and windows (suggested by furaisanjin)Johannes Hofmann
When opening a new BrowserWindow (tab or real window) we focus Location if we don't yet have an URL, main otherwise.
2009-10-29move link signal emitter/receiver from Widget to Layoutcorvid
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-October/006936.html
2009-10-26let later space override previous spacecorvid
The earlier space is less likely to be styled with the intended appearance.
2009-10-19fix segfault when radio button lacks name attributecorvid
2009-10-15remove "using namespace" statements from header filesJohannes Hofmann
"using namespace" in headers also affects all files that include the header which is unwanted and unexpected in most cases.
2009-09-17turn off PrevWasSPC for inline widgetscorvid
Noticed that there weren't spaces after the math images in http://en.wikipedia.org/wiki/Linear_programming
2009-08-05Fixed a bug with OPTION element (it was parsing entities twice)Jorge Arellano Cid
2009-05-31line lengthJorge Arellano Cid
2009-05-22constcorvid
2009-05-09[mq]: replace-DW2TB-with-HT2TBJeremy Henty
2009-04-22disable forms while stylesheets are pendingJohannes Hofmann
To avoid lost user input on repush, we disable forms until all stylesheets have been loaded. Also open select widgets cause crashes on repush.
2009-03-06remove standard_widget_colors dillorc optioncorvid
Form widgets by default use the background color of their parent. To get more conservative widget colors, you can add a line button, select, input {background-color: #e0e0e0} to ~/.dillo/style.css.
2009-02-20required attrs for form.cccorvid