diff -upr wt-3.3.0/src/Wt/WTable wt-3.3.0-tablecaption/src/Wt/WTable
--- src/Wt/WTable	2011-07-06 15:45:07.000000000 +0200
+++ src/Wt/WTable	2014-04-07 11:56:38.739112815 +0200
@@ -174,6 +174,18 @@ public:
    */
   virtual void moveColumn(int from, int to);

+  /*! \brief Gets the caption of the table
+   *
+   * \sa caption()
+   */
+  WString caption();
+
+  /*! \brief sets the caption of the table
+   *
+   * \sa setCaption()
+   */
+  void setCaption(WString caption);
+
 private:
   static const int BIT_GRID_CHANGED = 0;
   static const int BIT_COLUMNS_CHANGED = 1;
@@ -183,6 +195,7 @@ private:
   std::set<WTableRow *>       *rowsChanged_;
   unsigned                     rowsAdded_;
   int                          headerRowCount_, headerColumnCount_;
+  WString                      caption_;
 
   void expand(int row, int column, int rowSpan, int columnSpan);
   WTableRow::TableData& itemAt(int row, int column);
diff -upr wt-3.3.0/src/Wt/WTable.C wt-3.3.0-tablecaption/src/Wt/WTable.C
--- src/Wt/WTable.C	2012-11-12 10:15:03.000000000 +0100
+++ src/Wt/WTable.C	2014-04-07 11:56:23.915158934 +0200
@@ -442,4 +442,14 @@ void WTable::moveColumn(int from, int to
   repaint(RepaintSizeAffected);
 }
 
+WString WTable::caption()
+{
+  return caption_;
+}
+
+void WTable::setCaption(WString caption)
+{
+  caption_ = caption;
+}
+
 }
diff -upr wt-3.3.0/src/Wt/WWebWidget wt-3.3.0-tablecaption/src/Wt/WWebWidget
--- src/Wt/WWebWidget           2012-09-28 09:53:51.000000000 +0200
+++ src/Wt/WWebWidget           2014-04-07 20:43:13.575294525 +0200
@@ -29,7 +29,7 @@ class WApplication;
  */
 enum DomElementType {
   DomElement_A, DomElement_BR, DomElement_BUTTON, DomElement_COL,
-  DomElement_COLGROUP,
+  DomElement_COLGROUP, DomElement_CAPTION,
   DomElement_DIV, DomElement_FIELDSET, DomElement_FORM,
   DomElement_H1, DomElement_H2, DomElement_H3, DomElement_H4,

--- src/web/DomElement.C        2014-04-07 20:52:39.076067511 +0200
+++ src/web/DomElement.C        2014-04-07 20:52:05.858442777 +0200
@@ -21,7 +21,7 @@ namespace {

 std::string elementNames_[] =
   { "a", "br", "button", "col",
-    "colgroup",
+    "colgroup", "caption",
     "div", "fieldset", "form",
     "h1", "h2", "h3", "h4",

