Edgewall Software
Modify

Ticket #541 (closed defect: invalid)

Opened 8 years ago

Last modified 8 years ago

HTML end tags getting stripped

Reported by: muir Owned by: jonas
Priority: low Milestone:
Component: general Version: 0.7.1
Severity: trivial Keywords: html end tag strip
Cc:
Release Notes:
API 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

Change History

comment:1 Changed 8 years ago by muir

  • Resolution set to invalid
  • Status changed from new to closed

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.