Closed Bug 279860 Opened 20 years ago Closed 20 years ago

Using <form><button><p>text</p></button></form>, text is not formatted

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 61902

People

(Reporter: neal.p.murphy, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.3; Linux 2.6.9-2-686; X11; i686; en_US) KHTML/3.3.2 (like Gecko)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

If I understand correctly, within <button>...</button>, the <p>...</p> tags    
should be allowed. However, in the above reported version of Firefox, Netscape    
[Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1]    
and Mozilla [Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105    
Debian/1.7.5-1], the text is formatted as one long line, without line breaks.    
    
 

Reproducible: Always

Steps to Reproduce:
1. Go to http://murent.us/firefoxtest.php - the problem should be obvious. 
    
Actual Results:  
The text inside the button is formatted as one long line, without line breaks, 
and the width of the button far exceeds the container's 'margins'.  

Expected Results:  
The text should be filled to the paragraph's margins, and the button should be    
sized to the window, or the container it's in, whichever is smaller. (If I had 
to guess, I'd say it's a size problem, rather than a text formatting problem.) 

For what it's worth, Konqueror 3.3.1 and lynx do format the text correctly,         
well, as I expect it to be. :) Konqueror does fill the width of the window        
with the button, and correctly 'redisplays' the button at the window's width        
changes.    
    
Also, the buttons do work as expected in all the graphical bowsers I tested.    
       
The specified URL is a minimal test case I made from the actual site. I     
believe the HTML is minimally correct. 
 
As much as I should call it a major bug, just because it's been around so 
long, I'll be nice and call it normal. :)
Assignee: firefox → parser
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → mrbkap
Version: unspecified → Trunk
Not "all" graphical browsers as IE 6.0 behaves same as Mozilla 1.8a6 / Firefox 1.0.
Hmmm. IE says it is based on NCSA Mosaic. Makes me wonder how long this bug 
has been in place.... 
Sending over to layout for further triage (the content model is correct).
Assignee: parser → nobody
Component: HTML: Parser → Layout
QA Contact: mrbkap → layout

*** This bug has been marked as a duplicate of 61902 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.