Modify ↓
Opened 21 years ago
Closed 21 years ago
#541 closed defect (invalid)
HTML end tags getting stripped
Reported by: | muir | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | general | Version: | 0.7.1 |
Severity: | trivial | Keywords: | html end tag strip |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I didn't see any mentions of this problem.. I'm getting some end tags stripped from the final HTML that do appear in the template file. A simple example:
Clearsilver template file:
<div id="header"> <a id="logo" href="<?cs var:header_logo.link ?>" title="hello"> <img src="<?cs var:header_logo.src ?>" width="<?cs var:header_logo.width ?>" height="<?cs var:header_logo.height ?>" alt="<?cs var:header_logo.alt ?>" /> </a> </div>
Resulting HTML file:
<div id="header"> <a id="logo" href="http://mesh-project.org/" title="hello"> <img src="wiki_files/mesh_logo_small.png" width="80" height="35" alt="Mesh Project"> </a> </div>
It's not a huge issue since the rendering is correct but it's not valid XHTML and I couldn't figure out why this is happening. And in case you're wondering, it happens if I do
<img ...></img>
as well.
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Solved. It has something to do with how Firefox handles files, and it only occurs in saved files. Adding the Content-Type meta in the header seems to resolve this, too. I'm off to the FF board, sorry about the inconvenience :)