Opened 12 years ago
Closed 12 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)
Change History (10)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Summary: | html balises in a stackcontainer break it → StackContainer: 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 12 years ago by
Changed 12 years ago by
Attachment: | with problem_1.png added |
---|
Changed 12 years ago by
Attachment: | with problem_2.png added |
---|
comment:3 Changed 12 years ago by
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 12 years ago by
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 12 years ago by
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 12 years ago by
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 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
OK good. I hadn't heard about the p/div rule until recently either.
I forgot to say that I have these problems with FF3.0.5, IE7.0.5730.11 and GC1.0.154.36.
Kenny