Improve <table> output of 'to html', (#5699)

* Fix <table> output of 'to html',

Specifically, add <thead> and <tbody> elements.
That allows for better styling and (future) some neat JavaScript.

* Update tests for previous <table> changes.
This commit is contained in:
Per Bothner
2022-06-02 15:34:31 -07:00
committed by GitHub
parent e4bcd1934d
commit a06299c77a
2 changed files with 7 additions and 7 deletions

View File

@ -41,7 +41,7 @@ fn out_html_table() {
assert_eq!(
actual.out,
r"<html><style>body { background-color:white;color:black; }</style><body><table><tr><th>name</th></tr><tr><td>darren</td></tr></table></body></html>"
r"<html><style>body { background-color:white;color:black; }</style><body><table><thead><tr><th>name</th></tr></thead><tbody><tr><td>darren</td></tr></tbody></table></body></html>"
);
}