-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
link
element no longer has closing html tag (#963)
closes #958
- Loading branch information
1 parent
cbeade7
commit 6955a15
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
(export xml-test) | ||
|
||
(import :std/test :std/xml) | ||
|
||
(def xml-test | ||
(test-suite "test :std/xml" | ||
(test-case "converting elements from sxml to html" | ||
; normal elements with children include a closing tag | ||
(check-output (print-sxml->html* | ||
'(*TOP* | ||
(div | ||
(p "I'm paragraph one") | ||
(p "I'm paragraph two")))) | ||
"<div><p>I'm paragraph one</p><p>I'm paragraph two</p></div>") | ||
|
||
; void elements must never include a closing tag | ||
(check-output (print-sxml->html* | ||
'(*TOP* | ||
(area) | ||
(base) | ||
(br) | ||
(col) | ||
(embed) | ||
(hr) | ||
(img) | ||
(input) | ||
(link) | ||
(meta) | ||
(track) | ||
(wbr))) | ||
"<area><base><br><col><embed><hr><img><input><link><meta><track><wbr>")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters