Project

General

Profile

Bug #9035

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

Added by Roel Standaert about 2 months ago. Updated 20 days ago.

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

0%

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 20 days ago

  • Target version changed from 4.6.0 to 4.7.0

Also available in: Atom PDF