php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64435 Tidy does not respect the position of initial spaces inside of a tag
Submitted: 2013-03-15 17:41 UTC Modified: 2013-10-02 08:56 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dcasale at soundmessaging dot com Assigned:
Status: Not a bug Package: Tidy (PECL)
PHP Version: 5.3.23 OS: Ubuntu Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dcasale at soundmessaging dot com
New email:
PHP Version: OS:

 

 [2013-03-15 17:41 UTC] dcasale at soundmessaging dot com
Description:
------------
Tidy does not appear to respect initial spaces inside of a tag.  For instance, 
with the following input

<!DOCTYPE html>
<head>
<title></title>
</head>
<body><span> This is a test</span></body>
</html>

With the following options:

array(
	'add-xml-decl'		=> true,
	'output-xhtml'		=> true,
	'char-encoding'		=> 'utf8',
	'literal-attributes'	=> true,
	'numeric-entities'	=> true,
	'ncr'			=> true,
	'wrap'			=> 0,
	'indent'		=> true,
	'hide-comments'		=> true
)

Instead of the expected result, I get:

<body> <span>This is a test</span></body>

which is wrong.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-02 08:56 UTC] mike@php.net
-Status: Open +Status: Not a bug
 [2013-10-02 08:56 UTC] mike@php.net
Sorry, cannot find a reference in the spec that this is wrong, and in case it were wrong it would rather be a libtidy issue.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC