Posted by webrod on 04/27/07 11:59
> PHP is *not* HTML
of course!!
>so having problems with an HTML validator is exactly what
> you could expect.
HTML validator means that the HTML will be validated in a page.
It does not mean that you can only validate a .html file.
The proof with TIDY. It is able to work with php tags (you even have
some option to deal with php).
Unfortunately, it does that badly. A lot of bugs.
So I am wondering if there is another tool like TIDy but without bugs.
I use the ZEND IDE but it does not validate HTML code.
> I presume you want to validate the HTML generated by your PHP script.
> Just load your script through a web server and validate the output with the W3C
> validators:
>
> http://validator.w3.org
I know this website, but unfortunatelly, it does not automatically
update the code (for example to update <br> to <br/>)
And it works on the output, not on the input (except if you provide
the php file but I guess it doesn't like php code. It's not the goal
of this website to validate XHTML code in a php page)
Thanks for your help
Rod
[Back to original message]
|