summaryrefslogtreecommitdiff
path: root/src/form.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/form.cc')
-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? */