Opened 11 years ago

Closed 11 years ago

#8314 closed defect (invalid)

StackContainer: html balises in a stackcontainer break it

Reported by: Kenny Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.2.3
Keywords: stackcontainer contentpane html Cc:
Blocked By: Blocking:

Description

In the example from the library: dojo-release-1.2.3-src/dijit/tests/layout/test_StackContainer.html

If you place some html balises (I didn't test them all), like <p>, <div>, <ol>, <ul> or <blockquote> in one of the 3 contentPanes, the contents are broken.

No problem with the balises <br/> & <span>.

Kenny

Attachments (3)

test.php (4.4 KB) - added by Kenny 11 years ago.
with problem_1.png (4.3 KB) - added by Kenny 11 years ago.
with problem_2.png (12.9 KB) - added by Kenny 11 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 11 years ago by Kenny

I forgot to say that I have these problems with FF3.0.5, IE7.0.5730.11 and GC1.0.154.36.

Kenny

comment:2 Changed 11 years ago by bill

Summary: html balises in a stackcontainer break itStackContainer: html balises in a stackcontainer break it

You'll need to attach an example HTML file. This works fine for my tests.

Also, I've never heard of "balises".

Changed 11 years ago by Kenny

Attachment: test.php added

Changed 11 years ago by Kenny

Attachment: with problem_1.png added

Changed 11 years ago by Kenny

Attachment: with problem_2.png added

comment:3 Changed 11 years ago by Kenny

Hello Bill,

Thanks for your time.

I uploaded 3 files:

  • the example from "dojo-release-1.2.3-src/dijit/tests/layout/test_StackContainer.html" where I added an html tag (sorry for the word 'balise', it's french for tag).
  • 2 screen captures to show what happened on page 1 and 2 (and the page 3 also has problems).

++
Kenny

comment:4 Changed 11 years ago by Kenny

Oh..

And also, I tested this example at my home and now at my work and I have the same problem.

Btw, the problem also appears in IE6.

++
Kenny

comment:5 Changed 11 years ago by bill

Oh I see.... I'm not sure why it formats like that but it's illegal (HTML) to put a <div> inside of a <p>... <div> inside of a <div> is OK so if you just declare your ContentPane? with <div> it should work.

Let me know if that doesn't fix your problem; I think it will.

comment:6 Changed 11 years ago by Kenny

Ok.. You are right..

Now, with a div instead of a p as tag for the contentPane, I can put all the html tags I want.

NB: I never heard before that there was order to respect for the tags, like it's illegal to put a div inside a p (except for stuff like table or list).

Anyway.
Thanks for your help

Kenny

comment:7 Changed 11 years ago by bill

Resolution: invalid
Status: newclosed

OK good. I hadn't heard about the p/div rule until recently either.

Note: See TracTickets for help on using tickets.