Project

General

Profile

Actions

Bug #9035

closed

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

Added by Roel Standaert over 2 years ago. Updated almost 2 years 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.

Actions #1

Updated by Roel Standaert over 2 years ago

  • Target version changed from 4.6.0 to 4.7.0
Actions #2

Updated by Korneel Dumon about 2 years ago

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

Updated by Korneel Dumon about 2 years ago

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

Updated by Roel Standaert almost 2 years ago

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

Updated by Roel Standaert almost 2 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #6

Updated by Roel Standaert almost 2 years ago

  • Assignee set to Korneel Dumon
Actions #7

Updated by Roel Standaert almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF