> On Oct 30, 5:20 pm, "Jonathan Rosenberg" <[EMAIL PROTECTED]> wrote:

>
> See below.  this._question is a ref to $('question):
>
>       <div id="outer">
>               <img id='tobi' src="/images/help/tobi.png" />
>               <div class="top-left"></div><div class="top-right"></div>
>               <div class="inside">
>                       <p id='question' class="notopgap question">
>                               &nbsp;<!-- Question goes here -->
>               </p>
>                       <ul id='answers'>
>   <!--                                <li id='li-1'>answers go here</a></li> 
> -->
>                       </ul>
>                       <p class="nobottomgap">
>                        &nbsp;
>                        <a href='#' onClick='wiz.prev();'>
>                               <img id='back' src="/images/help/back.png" 
> /></a>
>                       </p>
>               </div>
>               <div

>
>> I'm having what I think is a weird problem with .update on IE.
>>
>> This statement fails:
>>
>>         this._question.update("<div>You</div>")
>>
>> but this works
>>
>>         this._question.update("<span>You</span>")

"The P element represents a paragraph. It cannot contain block-level  
elements (including P itself)."

http://www.w3.org/TR/html401/struct/text.html#h-9.3.1

Dunno if this is the actual reason to your problem, but don't use the  
P element for something that might ever contain other block-level  
elements. Just use div.

//jarkko

--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://odesign.fi

Check out my latest book, Unobtrusive Prototype, fresh off the  
Peepcode oven:
http://peepcode.com/products/unobtrusive-prototype-js


--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to