On Mar 18, 2:24 am, Tobie Langel <[email protected]> wrote:
> > As previously discussed here, setAttribute sets the HTML attribute,
> > which does not update the displayed value in some browsers.
>
> ViniH is correctly using Element#setValue,
Yes, I misread that as setAttribute.
> which abstracts those
> issues.
Not so much abstract as avoid, it sets the DOM value property (which
is a much better approach than using setAttribute).
> The behaviour is the expected one (displaying the exact
> input). Since ViniH want's to display escaped data, he simply has to
> unescape it like so:
>
> textarea.setValue(content.unescapeHTML());
Hard to see how that is better than:
textarea.value = content.unescapeHTML();
and given the machinations of unescapeHTML, why not just:
textarea.innerHTML = content;
--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---