Ericcom / phpquery

Automatically exported from code.google.com/p/phpquery
1 stars 0 forks source link

Close HTML tag #177

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. $doc = phpQuery::newDocument('<input /');
2. $doc['input']->attr('name','myInput');
3. print $doc;

What is the expected output? What do you see instead?
<input name='myInput'/> instead i've got <input name='myInput'>

What version of the product are you using? On what operating system?
0.9.5.386 ( both ) on Snow Leopard 10.6.6

Please provide any additional information below.
I'm using Macports PHP 5.3.5

PHP 5.3.5 (cli) (built: Mar  8 2011 12:00:14) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

DOM

DOM/XML     enabled
DOM/XML API Version     20031129
libxml Version  2.7.8
HTML Support    enabled
XPath Support   enabled
XPointer Support    enabled
Schema Support  enabled
RelaxNG Support     enabled

Original issue reported on code.google.com by kleder...@gmail.com on 13 Mar 2011 at 11:26

GoogleCodeExporter commented 9 years ago
Have you got any solution?

Original comment by david2...@gmail.com on 9 Aug 2011 at 9:08