From ed43f88168c3994c54c3ae172fd139ac348b788d Mon Sep 17 00:00:00 2001
From: "ctrlaltca@gmail.com" <>
Date: Thu, 29 Sep 2011 16:21:41 +0000
Subject: Test patch for #366: use a
instead of a
around the
of a TActiveDataGrid to ensure W3C validation ( is an inline
element and is not allowed to contain a block element like )
---
framework/Web/UI/ActiveControls/TActiveDataGrid.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'framework/Web')
diff --git a/framework/Web/UI/ActiveControls/TActiveDataGrid.php b/framework/Web/UI/ActiveControls/TActiveDataGrid.php
index 13ba650a..bd32db5e 100644
--- a/framework/Web/UI/ActiveControls/TActiveDataGrid.php
+++ b/framework/Web/UI/ActiveControls/TActiveDataGrid.php
@@ -84,7 +84,7 @@ class TActiveDataGrid extends TDataGrid implements IActiveControl, ISurroundable
}
/**
- * Returns the id of the surrounding container (span).
+ * Returns the id of the surrounding container (div).
* @return string container id
*/
public function getSurroundingTagId() {
@@ -158,14 +158,14 @@ class TActiveDataGrid extends TDataGrid implements IActiveControl, ISurroundable
}
/**
- * Renders the datagrid by writing a span tag with the container id obtained from {@link getSurroundingTagId()}
+ * Renders the datagrid by writing a div tag with the container id obtained from {@link getSurroundingTagId()}
* which will be called by the replacement method of the client script to update it's content.
* @param THtmlWriter writer for the rendering purpose
*/
private function renderDataGrid($writer) {
- $writer->write('');
+ $writer->write('');
parent::render($writer);
- $writer->write('');
+ $writer->write('
');
}
}
--
cgit v1.2.3