Edgewall Software

Ticket #25 (closed defect: worksforme)

Opened 8 years ago

Last modified 9 months ago

<link> element is missing closing tag or "/>"

Reported by: arnarbi at gmail Owned by: cmlenz
Priority: major Milestone:
Component: General Version:
Keywords: Cc:

Description

I have this in a file called master.html:

<link rel="stylesheet" href="/static/css/main.css" type="text/css" />

In the generated output, the "/" is stripped:

<link href="/static/css/main.css" type="text/css" rel="stylesheet">

effectively outputting invalid XML.

Attachments

Change History

Changed 8 years ago by cmlenz

  • status changed from new to closed
  • version set to 0.1
  • resolution set to worksforme
  • milestone 0.2 deleted

You're probably using the html output method? The output you're getting is valid HTML (whereas the one you'd like is not, strictly speaking).

Anyway, using the XHTML serializer should produce the <link /> style:

  tmpl.generate(ctxt).render('html')

If that's not the case, please reopen this ticket. Thanks.

Changed 9 months ago by XRumerTest

  • version 0.1 deleted
  • component changed from Template processing to General
  • summary changed from <link> element is missing closing tag or "/>" to &lt;link&gt; element is missing closing tag or &#34;/&gt;&#34;

Hello. And Bye.

Add/Change #25 (&lt;link&gt; element is missing closing tag or &#34;/&gt;&#34;)

Author


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


Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.