diff options
author | Uwe Steinmann <steinm@php.net> | 2000-06-15 07:06:38 +0000 |
---|---|---|
committer | Uwe Steinmann <steinm@php.net> | 2000-06-15 07:06:38 +0000 |
commit | a35d575ba6e04fefca1e68e0d43c093a17b4cd5a (patch) | |
tree | afdce324256d6bbda81694bd7daac4f6647a0535 /tests | |
parent | 785fd93311a464de787e7ad0b2f774816c3771c6 (diff) | |
download | php-git-a35d575ba6e04fefca1e68e0d43c093a17b4cd5a.tar.gz |
- changes to handle the slightly different access to attributes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testdom | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/testdom b/tests/testdom index 66281d310b..a1077d031b 100644 --- a/tests/testdom +++ b/tests/testdom @@ -7,9 +7,11 @@ function output_node($node, $level=0) { echo " "; echo "<".$node->name; $attributes = $node->attributes(); - if(is_array($attributes)) - for(reset($attributes); $attrname = key($attributes); next($attributes)) - echo " ".$attrname."=".$node->getattr($attrname); + if(is_array($attributes)) { +//var_dump($attributes); + foreach($attributes as $attribute) + echo " ".$attribute->name."=".$node->getattr($attribute->name); + } echo ">\n"; $children = $node->children(); for($i=0; $i < count($children); $i++) |