But if the element is an XML dom element that has a text property...
Will xml.get('text') returns the property or the text??

I remember that in 1.2.5 I had to apply a simple patch to the code
Element.Properties.type = {
    get: function(){ return this.getAttribute('type',2); },
      set: function(value){ this.setAttribute('type', value);    return
this; }
};

what about 1.3?

--
-----------
Tafuni Vito
[email protected]
---------------------------------------------
"Verba volant, scripta manent... data corrupted"


2010/11/9 Sean McArthur <[email protected]>

> That's the expect behavior. get('text') just picks innerText or
> textContent, depending on the browser.
>
> Node.textContent from MDC -
> Gets or sets the text content of a node and its descendants.
> textContent returns the concatenation of the textContent attribute value
> of every child node, excluding comments and processing instruction nodes.
> This is an empty string if the node has no children.
>
>
>
> On Mon, Nov 8, 2010 at 4:10 PM, doubleTap <[email protected]> wrote:
>
>> Is it the correct behavior for someElement.get('text') to return the
>> text of its child elements? For example, the following returns "Da
>> kids aren't alright."
>>
>> <tr id="theySuckLive">
>>  <td>
>>    <b>Da kids aren't alright.</b>
>>  </td>
>> </tr>
>>
>> document.id('theySuckLive").text();
>
>
>

Reply via email to