Closed Bug 152517 Opened 23 years ago Closed 23 years ago

Save Page As... - empty element end tag removed from XHTML

Categories

(SeaMonkey :: General, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 120556

People

(Reporter: wooster_spam, Assigned: Matti)

References

Details

Version is Mozilla 1.1a. Only occurs with "Web page, complete" option. Test is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> </head> <body> <br /> </body> </html> Which doesn't validate anyway because of the missing sub-elements of head, but the output is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head></head> <body> <br> </body></html> Which is worse. Notice <br /> got changed to <br>. The same happens with other empty elements with end tags.
Blocks: 115634
This is reported against an XHTML page served as text/html. In such a page the "/" means nothing. See bug 120556, comment 6. *** This bug has been marked as a duplicate of 120556 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.