Project

General

Profile

Bug #9035

head-matter makes tags self-closing that shouldn't be

Added by Roel Standaert 9 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/02/2021
Due date:
% Done:

100%

Estimated time:

Description

I tried to add a <script> tag in <head-matter> in wt_config.xml, but the XML parser turns a <script> tag with an empty body into a self-closing tag, which is not allowed by HTML.

We should make sure only tags that are allowed to be self-closing are self-closed. We already have a mechanism like this for our message resource bundles, so that can be reused.

Workaround: put a JavaScript comment in the <script> tag so it's non-empty.

#1

Updated by Roel Standaert 8 months ago

  • Target version changed from 4.6.0 to 4.7.0
#2

Updated by Korneel Dumon 3 months ago

  • Status changed from New to InProgress
  • Assignee set to Korneel Dumon
#3

Updated by Korneel Dumon 3 months ago

  • Status changed from InProgress to Review
  • Assignee deleted (Korneel Dumon)
#4

Updated by Roel Standaert 2 months ago

  • Status changed from Review to Implemented @Emweb
  • % Done changed from 0 to 100
#5

Updated by Roel Standaert 2 months ago

  • Status changed from Implemented @Emweb to Resolved
#6

Updated by Roel Standaert 2 months ago

  • Assignee set to Korneel Dumon
#7

Updated by Roel Standaert 2 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF