From: konstantin dot ryabitsev at mcgill dot ca
Operating system: Linux
PHP version: 5.2.0
PHP Bug Type: Unknown/Other Function
Bug description: Handling of 'new-blocklevel-tags' inconsistent
Description:
------------
I seem to get odd behaviour running the following code. Theoretically (and
confirmed by running command-line tidy utility), the output should contain
all namespace-prepended tags. On my machine, the output only contains the
<wps:block> element, and none of the elements contained within.
It's really weird. If I change the names to "wps:blo", "wps:var" and
"wps:val", it works. I'm really confused at this point.
Reproduce code:
---------------
<?php
$contents = '
<wps:block>
<wps:var>
<wps:value/>
</wps:var>
</wps:block>';
$config = array(
'new-blocklevel-tags' => 'wps:block,wps:var,wps:value'
);
$tidy = tidy_parse_string($contents, $config, 'utf8');
$tidy->cleanRepair();
print "{$tidy->value}\n";
?>
Expected result:
----------------
<html>
<head>
<title></title>
</head>
<body>
<wps:block>
<wps:var>
<wps:value></wps:var>
</wps:block>
</body>
</html>
Actual result:
--------------
<html>
<head>
<title></title>
</head>
<body>
<wps:block>
</body>
</html>
--
Edit bug report at http://bugs.php.net/?id=39417&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39417&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39417&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39417&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39417&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39417&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39417&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39417&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39417&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39417&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39417&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39417&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39417&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39417&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39417&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39417&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39417&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39417&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39417&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39417&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39417&r=mysqlcfg