TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.07k stars 1.19k forks source link

[BUG] testcase-widget produces redundant HMTL tags: P DIV DIV P #8741

Open pmario opened 1 week ago

pmario commented 1 week ago

Describe the bug

The testcase-widget produces redundant HMTL tags: P DIV DIV P

Where 2 of them are easy to identify.

  1. P-tag: is cause by $:/core/ui/ViewTemplate/body redundant new-lines
  2. Is created by the testcase-widget in testcase.js 2.1 This one should get a default class eg: class="tc-testcase" similar to the revealwidget 2.2 The testcase widget should also get a class-parameter so users can define a custom class here
  3. No idea yet, where they come from

grafik

Expected behavior

Only the necessary DOM elements should be created. Redundant tags should go away.

TiddlyWiki Configuration

v5.3.6-pre No regression. This is also a problem in v5.3.5