Edgewall Software

Opened 18 years ago

Closed 18 years ago

Last modified 10 years ago

#25 closed defect (worksforme)

<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.

Change History (2)

comment:1 Changed 18 years ago by cmlenz

  • Milestone 0.2 deleted
  • Resolution set to worksforme
  • Status changed from new to closed
  • Version set to 0.1

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.

comment:2 Changed 10 years ago by XRumerTest

  • 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;
  • Version 0.1 deleted

Hello. And Bye.

Note: See TracTickets for help on using tickets.