Closed Bug 274015 Opened 20 years ago Closed 20 years ago

application/xhtml+xml does not break after <br/> and <div>!!

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: navid.zamani, Assigned: bugzilla)

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

571 bytes, application/xhtml+xml
Details
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0

Well... This is just strange.
I have a nice working document. And as soon as I let php submit
application/xhtml+xml in the http-header, i have to add a display: block to the
div-element in my stylesheet to let it break after, and the <br/> does not
break, no matter what i do.
Are there two so different render-paths inside firefox? I would not believe it
if I hadn't seen it with my own eyes...

Reproducible: Always
Steps to Reproduce:
1. change your default_mimetype to "application/xhtml+xml" in your php.ini. (if
not possible maybe the php function header() can do it. But then I can't
guarantee reproducibility!)
2. create a document with some <div>s and some text with <br/>s inside it.
3. look at it in your browser.

Actual Results:  
In this case I get no break after the <br/>s, and the <div>s look like "display:
float".

Expected Results:  
Same look as if the same document would be delivered with default_mimetype set
to "text/html". (Of course the document must be a fully conforming XHTML 1.1
document! [Maybe XHTML 1.0 Strict "works" too?])

P.S.: I don't think it's associated to the case that my firefox crashes every 5
minutes after i click on something like links, tabs, ... And that it forgets
that i just updated fireftp and the english language pack [i have german
version] :_(
(I also could not find the bugs for this... Maybe it's just on my pc. ;) But of
not this is the buggiest mozilla-thing since seamonkey M8 ;P)

P.P.S.: the bug search seems to work improperly. It shows me a ton of bugs for
the query "xhtml br div break". And the don't seem to have anything to do with
the query. So sorry if this is a duplicate... Could not avoid it. :(
Attached file testcase (obsolete) —
WFM 20041209 PC/WinXP
Unless you can show a URL or a testcase, resolves WFM.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Keywords: testcase
Resolution: --- → WORKSFORME
Attached file revised testcase
Fix an error in the 1st testcase, still WFM.
Attachment #168392 - Attachment is obsolete: true
[damn! another crash while entering this comment...]

*lol* Sorry guys. I found the "bug" myself!

First I thought it was a DOM-problem. (In fact it was!)
So in tried: 
  document.createElementNS("http://www.w3.org/1999/xhtml","BR")
I did not work.

Do you already see the bug?
Well, i didn't too... ;P
It's the uppercase BR.

So if no one removes this, then maybe it can be a catch up for all the other
poeple who have the same problems... (and maybe speak a better english than i do. ;)

P.S.: You don't even need the namespace-version of createElement, because
mozilla seems to default to the namespace of the surrounding elements (?)

P.P.S: If anyone gets the crashes too, please create a bug of it... This is the
3rd time i enter this text. :((
Verified invalid, not WFM.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: