You are here: Re: [PHP] Re: Using DOM object, how? « PHP « IT news, forums, messages
Re: [PHP] Re: Using DOM object, how?

Posted by Ken Tozier on 09/19/05 20:25

> I would be extremely careful with this.. because sadly PHP's XML
> generator
> uses the short form whenever possible.
> <script /> will *NOT* work in most browsers such as FireFox.
> <script></script> Will work.

Thanks for the heads up. Looks like if you define the tag like
$script = $dom->createElement('script',''); <-- empty string
It tacks on an end tag.

> I personally would love to see a function where I could set it to
> use the long
> form. and when importing if it's in long form.. set that long from
> flag on
> automatically .. this would have saved me _hours_ of debugging work.
>
> are you trying to just generate the entire html page using only the
> XML
> DOM? .. or are you doing this in conjunction with another language
> such as
> XSL?

So far, just playing. But ultimately I'd like to generate the whole
page using dom calls. It seems much cleaner for what I'm doing than
creating a whole bunch of large functions that do nothing more than
echo prestyled html.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация