From ad5c394d39c35b48b7cfc4384288e53d268d0aab Mon Sep 17 00:00:00 2001 From: "GODZilla0480@gmail.com" <> Date: Sun, 28 Aug 2011 04:43:21 +0000 Subject: Modifiy TTemplate::parseAttributes to allow definition of "HTML5 Custom Data Attributes (data-*)" e.g Attributes.data-custom-value="foobar" --- HISTORY | 1 + framework/Web/UI/TTemplateManager.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index bdd92b42..d4ed8895 100644 --- a/HISTORY +++ b/HISTORY @@ -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) -- cgit v1.2.3