#39417 [Bgs]: Tidy: Handling of 'new-blocklevel-tags' inconsistent
| From: | konstantin dot ryabitsev at mcgill dot ca | Date: | Wed, 08 Nov 2006 14:40:51 +0000 |
| Subject: | #39417 [Bgs]: Tidy: Handling of 'new-blocklevel-tags' inconsistent | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104603@lists.php.net to get a copy of this message | ||
ID: 39417
User updated by: konstantin dot ryabitsev at mcgill dot ca
Reported By: konstantin dot ryabitsev at mcgill dot ca
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Linux
PHP Version: 5.1.6
New Comment:
I disagree. The bug does not occur when running tidy with the same
parameters, only when invoked as part of a PHP script. I will ask on
the libtidy support list, but I believe their answer will be to file a
bug with php.
Previous Comments:
------------------------------------------------------------------------
[2006-11-08 03:07:51] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
This is a libtidy bug.
------------------------------------------------------------------------
[2006-11-07 22:22:59] konstantin dot ryabitsev at mcgill dot ca
Specifying "Tidy:" in the Summary.
------------------------------------------------------------------------
[2006-11-07 22:19:03] konstantin dot ryabitsev at mcgill dot ca
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 this bug report at http://bugs.php.net/?id=39417&edit=1