Edgewall Software
Modify

Opened 20 years ago

Closed 20 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)

Change History (1)

comment:1 by muir, 20 years ago

Resolution: invalid
Status: newclosed

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 :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.