I've run into this problem myself where I thought the P tag would be containing other elements. I found out what was going on by looking at the DOM Inspector in Firefox which displayed the element orientation as it had rendered it, not how I had written it.
On Jul 12, 9:12 am, "Rob Wilkerson" <[EMAIL PROTECTED]> wrote: > Thanks, Christophe. I actually did consider that, but after looking > at the W3C site, that particular configuration looked valid (p > elements can contain list elements). Turns out I was looking at the > XHTML2 spec. Sorry about that. > > http://www.w3.org/TR/2003/WD-xhtml2-20030506/mod-block-text.html#s_bl... > > On 7/12/07, Christophe Porteneuve <[EMAIL PROTECTED]> wrote: > > > > > Hey, > > > Rob Wilkerson a écrit : > > > content is hidden. The nested elements are left visible. Is that > > > expected? If so, how can I hide everything? What am I missing? > > > That's because your markup is faulty. You can't nest <ol>'s into <p>, > > it's not valid HTML. So the browser actually puts the <ol> outside the > > <p> from a rendering perspective. Migrate your <p> to a <div> in this > > instance (and make the "You have two options:" bit its own <p> inside > > it), then toggle the <div>. That'll work. > > > -- > > Christophe Porteneuve aka TDD > > [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
