aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2015-02-02 22:23:45 +0000
committercorvid <devnull@localhost>2015-02-02 22:23:45 +0000
commit74a4875a72db4bbfd09432de7ed46445eccadb1a (patch)
tree965b2139bc7ba81c893ed5e666799349fd76d932 /src
parent014a83d2f53cd49bd2540c53ee56f26d880fe2f5 (diff)
TEXTAREA placeholder attribute
Diffstat (limited to 'src')
-rw-r--r--src/form.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/form.cc b/src/form.cc
index 366b00b9..92ee3a42 100644
--- a/src/form.cc
+++ b/src/form.cc
@@ -669,9 +669,11 @@ void Html_tag_content_textarea(DilloHtml *html, const char *tag, int tagsize)
if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "name")))
name = dStrdup(attrbuf);
+ attrbuf = a_Html_get_attr(html, tag, tagsize, "placeholder");
+
ResourceFactory *factory = HT2LT(html)->getResourceFactory();
MultiLineTextResource *textres =
- factory->createMultiLineTextResource (cols, rows);
+ factory->createMultiLineTextResource (cols, rows, attrbuf);
Embed *embed = new Embed(textres);
/* Readonly or not? */