summaryrefslogtreecommitdiff
path: root/src/HTML5/Serializer
diff options
context:
space:
mode:
authorAsmir Mustafic <[email protected]>2014-06-17 16:17:21 +0200
committerAsmir Mustafic <[email protected]>2014-06-17 16:17:21 +0200
commitd957195722da6031e52f013335fe8d3e41a9d84d (patch)
treecb119a5a326451d4e131082361b17d3eef632eff /src/HTML5/Serializer
parent8800ec11ff1cf56c31d247c1020c73fa71260690 (diff)
php5.3 array style
Diffstat (limited to 'src/HTML5/Serializer')
-rw-r--r--src/HTML5/Serializer/OutputRules.php23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/HTML5/Serializer/OutputRules.php b/src/HTML5/Serializer/OutputRules.php
index 73406b8..7b091ec 100644
--- a/src/HTML5/Serializer/OutputRules.php
+++ b/src/HTML5/Serializer/OutputRules.php
@@ -41,8 +41,8 @@ class OutputRules implements \Masterminds\HTML5\Serializer\RulesInterface
'nodeName'=>'select',
'attrName'=>'multiple',
- 'prefixes'=>['xh'=>'http://www.w3.org/1999/xhtml'],
- 'xpath' => "xh:option/@selected",
+ 'prefixes'=>['xh'=>'http://www.w3.org/1999/xhtml'),
+ 'xpath' => "@checked[../../xh:input[@type='radio' or @type='checkbox']]",
),
*/
array(
@@ -62,12 +62,7 @@ class OutputRules implements \Masterminds\HTML5\Serializer\RulesInterface
),
array(
'nodeNamespace'=>'http://www.w3.org/1999/xhtml',
- 'nodeName'=>['input', 'textarea', 'button', 'select', 'option', 'optgroup'],
- 'attrName'=>'disabled',
- ),
- array(
- 'nodeNamespace'=>'http://www.w3.org/1999/xhtml',
- 'nodeName'=>['input', 'textarea', 'button', 'select', 'option', 'optgroup'],
+ 'nodeName'=>array('input', 'textarea', 'button', 'select', 'option', 'optgroup'),
'attrName'=>'disabled',
),
array(
@@ -75,21 +70,21 @@ class OutputRules implements \Masterminds\HTML5\Serializer\RulesInterface
'nodeName'=>'input',
'attrName'=>'checked',
'xpath' => "@checked[../../xh:input[@type='radio' or @type='checkbox']]",
- 'prefixes'=>['xh'=>'http://www.w3.org/1999/xhtml'],
+ 'prefixes'=>array('xh'=>'http://www.w3.org/1999/xhtml'),
),
array(
'nodeNamespace'=>'http://www.w3.org/1999/xhtml',
- 'nodeName'=>['input', 'textarea'],
+ 'nodeName'=>array('input', 'textarea'),
'attrName'=>'readonly',
'xpath' => "@readonly[../../xh:input[@type='radio' or @type='checkbox']]|@readonly[../../xh:textarea]",
- 'prefixes'=>['xh'=>'http://www.w3.org/1999/xhtml'],
+ 'prefixes'=>array('xh'=>'http://www.w3.org/1999/xhtml'),
),
array(
'nodeNamespace'=>'http://www.w3.org/1999/xhtml',
- 'nodeName'=>['input', 'textarea'],
+ 'nodeName'=>array('input', 'textarea'),
'attrName'=>'readonly',
'xpath' => "@readonly[../../xh:input[@type='radio' or @type='checkbox']]|@readonly[../../xh:textarea]",
- 'prefixes'=>['xh'=>'http://www.w3.org/1999/xhtml'],
+ 'prefixes'=>array('xh'=>'http://www.w3.org/1999/xhtml'),
),
array(
'nodeNamespace'=>'http://www.w3.org/1999/xhtml',
@@ -101,7 +96,7 @@ class OutputRules implements \Masterminds\HTML5\Serializer\RulesInterface
'nodeName'=>'input',
'attrName'=>'ismap',
'xpath' => "@checked[../../xh:input[@type='image']]",
- 'prefixes'=>['xh'=>'http://www.w3.org/1999/xhtml'],
+ 'prefixes'=>array('xh'=>'http://www.w3.org/1999/xhtml'),
),
);