|
Posted by Jean Pion on 10/11/06 11:36
"Ivαn Sαnchez Ortega" <i.punto.sanchez--@rroba--mirame.punto.net> schreef in
bericht news:m18u83-u8m.ln1@blackspark.escomposlinux.org...
> tomb wrote:
>
>> But the only reason to generate neat html
>> is so the users can look at the page source and make sense of it more.
>
> Besides, a developer should not read raw HTML, but should have a look at
> the
> DOM tree - there are wonderful DOM tree inspectors for Konqueror and
> Firefox (built-in) and for IE (via third-party toolbars).
>
> Analyzing the DOM tree generated by the PHP scripts, and validating the
> generated HTML against W3C's validators would prove more useful than
> writing scripts that generate indented HTML.
>
I'm just working on some inherited code, and I don't want to rewrite it
completely.
What I do now is load source of the resulting page into CSE Html Validator.
If would help me a bit to make it more readable;
but you are right: a comment blocks will do fine.
Thanks for your input,
Jean.
>
> (In fact, my programs generate a gibberish of (X)HTML that validates quite
> nicely, but is a mess to read).
>
> - --
> - ----------------------------------
> Ivαn Sαnchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
>
[Back to original message]
|