diff options
author | GODZilla0480@gmail.com <> | 2011-08-28 04:43:21 +0000 |
---|---|---|
committer | GODZilla0480@gmail.com <> | 2011-08-28 04:43:21 +0000 |
commit | ad5c394d39c35b48b7cfc4384288e53d268d0aab (patch) | |
tree | 4d67391ec2eb4bd0d737c0b20f21da4dcdb889c0 | |
parent | 3b9afe7979fb5195445da768ecee2f138ba84005 (diff) |
Modifiy TTemplate::parseAttributes to allow definition of "HTML5 Custom Data Attributes (data-*)" e.g Attributes.data-custom-value="foobar"
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -9,6 +9,7 @@ EHN: Add property SecureConnection to TUrlMappingPattern and related enum TUrlMa EHN: Add second parameter to THttpResponse::appendHeader whether the header should replace a previous similar header, or add a second header of the same type (Yves) ENH: Add THttpSession::regenerate() to update the current session id with a newly generated one (Yves) CHG: Remove TReflectionClass and all references since equals ReflectionClass (Yves) +CHG: Modifiy TTemplate::parseAttributes to allow definition of "HTML5 Custom Data Attributes (data-*)" e.g Attributes.data-custom-value="foobar" (Yves) Version 3.1.9 June 3, 2011 BUG: Issue#280 - Documentation has been updated diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index f0a8dd47..a5e635da 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -823,7 +823,7 @@ class TTemplate extends TApplicationComponent implements ITemplate {
if($str==='')
return array();
- $pattern='/([\w\.]+)\s*=\s*(\'.*?\'|".*?"|<%.*?%>)/msS';
+ $pattern='/([\w\.\-]+)\s*=\s*(\'.*?\'|".*?"|<%.*?%>)/msS';
$attributes=array();
$n=preg_match_all($pattern,$str,$matches,PREG_SET_ORDER|PREG_OFFSET_CAPTURE);
for($i=0;$i<$n;++$i)
|