mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-04 14:37:24 +00:00
Fix/serialize close html tag (#9437)
* fix: should use tree.isSelfClosing || isVoidElement * docs: about html * fix: Void element without self-closing slash (e.g., <br> instead of <br/>) * Update editions/test/tiddlers/tests/data/serialize/VoidElements.tid Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
12
editions/test/tiddlers/tests/data/serialize/VoidElements.tid
Normal file
12
editions/test/tiddlers/tests/data/serialize/VoidElements.tid
Normal file
@@ -0,0 +1,12 @@
|
||||
tags: $:/tags/wikitext-serialize-test-spec
|
||||
title: Serialize/VoidElements
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
This tests void elements like <br/> and <br> (without `/`).
|
||||
|
||||
Line one<br>Line two
|
||||
Line three<br/>Line four
|
||||
|
||||
<hr>
|
||||
|
||||
Images are also void: <img src="test.png">
|
||||
Reference in New Issue
Block a user