Closed Bug 521300 Opened 15 years ago Closed 15 years ago

self-closing tt tag causes all following text to be in tt mode

Categories

(Core :: DOM: HTML Parser, defect)

x86
Linux
defect
Not set
normal

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.
replace <tt/> with </tt>
You should only expect this to work if you send using an XML Media type.
Status: UNCONFIRMED → RESOLVED
Closed: 15 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.