summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-09-29 16:21:41 +0000
committerctrlaltca@gmail.com <>2011-09-29 16:21:41 +0000
commited43f88168c3994c54c3ae172fd139ac348b788d (patch)
tree09f26861e6cd5b94aac02c7b0091062b914d2c8e /framework/Web/UI
parent77d138bec878d0380a3c097b711843cadc28a9f6 (diff)
Test patch for #366: use a <div> instead of a <span> around the <table> of a TActiveDataGrid to ensure W3C validation (<span> is an inline element and is not allowed to contain a block element like <table>)
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveDataGrid.php8
1 files changed, 4 insertions, 4 deletions
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('<span id="'.$this->getSurroundingTagId().'">');
+ $writer->write('<div id="'.$this->getSurroundingTagId().'">');
parent::render($writer);
- $writer->write('</span>');
+ $writer->write('</div>');
}
}