Edgewall Software

Ticket #541 (closed defect: invalid)

Opened 5 years ago

Last modified 5 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:

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

Changed 5 years ago by muir

  • status changed from new to closed
  • resolution set to invalid

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

Add/Change #541 (HTML end tags getting stripped)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.