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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 15:01:29 2024 UTC