ollie wrote:
> this code:
> 
> var test = document.createElement('div');
> test.innerHTML = "<div>this is a test<br />with a new line</div>";
> test = Element.extend(test);
> alert(test.down('div').innerHTML);
> 
> returns 'this is a test<BR>with a new line'
> 
> it changes the valid '<br/>' to the invalid '<BR>'

Are you sure it's down() that's causing problems? What does this say:

var test = document.createElement('div');
test.innerHTML = "<div>this is a test<br />with a new line</div>";
alert(test.innerHTML);

-- 
Michael Peters
Developer
Plus Three, LP


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to