pein0119 / phpquery

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

pq() syntax strange thing... #94

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Using the latest dev release.

This <php>$test = pq('<li><label>Fichier : </label><input type="file"
name="pjModification_fichier[0]"/><br/><label>Titre : </label><input
type="text" name="pjModification_titre[0]"
class="pieceJointe_titre"/></li>');</php> work.

This <php>$test = pq
(
'
<li>
    <label>Fichier : </label>
    <input type="file" name="pjModification_fichier[0]"/>
    <br/>
    <label>Titre : </label>
    <input type="text" name="pjModification_titre[0]" class="pieceJointe_titre"/>
</li>
'
);</php> doesnt' work.

Can't figure out why...
Error : Fatal error: Call to undefined method DOMText::setAttribute() in
phpQueryObject.php on line 2770

Original issue reported on code.google.com by nicolas....@gmail.com on 12 Jan 2009 at 3:02

GoogleCodeExporter commented 8 years ago
Seems that first newline isn't stripped corretly when testing input agains being
markup. Markup MUST begin with an "<" character, otherwise  it's treated as 
selector.

What platform and PHP version are you using ?

Original comment by tobiasz....@gmail.com on 12 Jan 2009 at 3:22

GoogleCodeExporter commented 8 years ago
PHP 5.2.6 on a Linux system (phpinfo is here : 
http://195.144.11.42/phpinfo.php).

I make a newline because it's better for my dev layout... so not very 
important, but...

Original comment by nicolas....@gmail.com on 12 Jan 2009 at 3:45

GoogleCodeExporter commented 8 years ago
You shouldn't publicly post your phpinfo pages. A possible intruder ges to know 
too
much information about your sytem's settings by that (register global ON, paths 
on
the system, available modules)

Original comment by laurens....@gmail.com on 4 Jun 2009 at 5:14