Closed
      
        Bug 521300
      
      
        Opened 16 years ago
          Closed 16 years ago
      
        
    
  
self-closing tt tag causes all following text to be in tt mode
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
        RESOLVED
        DUPLICATE
          of bug 135425
        
    
  
People
(Reporter: sam, Unassigned)
Details
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090924 Ubuntu/9.10 (karmic) Firefox/3.5.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090924 Ubuntu/9.10 (karmic) Firefox/3.5.3
With the document below the text "should be normal" is wrongly in tt mode.
A self-closing tt may or may not be valid, but its a bad way to render with such a tag.
<html><head>
<title>Practical Jokes -  - timbuctoo</title></head><body>
Normal<br/>
  <tt>Practical Jokes - all the fun of mean tricks with none of the guilt.</tt>
  <tt/>
  <br/>
Should be normal
</body></html>
Reproducible: Always
Steps to Reproduce:
1. view example document
2. observe how text following <tt/> tag is still in tt mode
3.
          Comment 1•16 years ago
           
         | 
      ||
replace <tt/> with </tt>
You should only expect this to work if you send using an XML Media type.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Component: Layout: Text → HTML: Parser
QA Contact: layout.fonts-and-text → parser
Resolution: --- → DUPLICATE
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•