Re: Problem with appendChild and ellipsis... [message #173071 is a reply to message #173070] |
Sun, 20 March 2011 17:37 |
spambait
Messages: 35 Registered: September 2010
Karma:
|
Member |
|
|
In article <ag4co61ltlt2muitdkoup5uufqomlaegg7(at)4ax(dot)com>, Dennis <nobody(at)nowhere(dot)invalid> wrote:
> When writing a DOMDocument I have code similar to this...
>
> $title = $doc->createElement("title");
> $item->appendChild($title);
>
> $title_data = "Some data followed by an ellipses…";
>
> $title_text = $doc->createTextNode($title_data);
> $title->appendChild($title_text);
>
> When I look at the resulting file the <title></title> is there but it is
> empty. I displayed $title_text->wholeText and the string with the
> ellipsis is there. So it appears that something in appendChild is
> gagging on the ellipsis.
>
> Any thoughts?
Ask in an appropriate group. This has *nothing* to do with PHP.
Comp.lang.javascript is --------------> over that way.
|
|
|