521a3f76eebab0854aa5c46374356cadddd6ef7d braney Sat Sep 26 12:12:14 2026 -0700 docent regression scripts for the hgTracks tooltip text and the Hub Upload file card, refs #38252, #38226, #38398 Both fail on hgwbeta (v504) and pass on genome-test; the proof lines say what each failure was. diff --git src/hg/utils/docent/tests/regress/rm38226.docent.yaml src/hg/utils/docent/tests/regress/rm38226.docent.yaml new file mode 100644 index 00000000000..f9cf1920f14 --- /dev/null +++ src/hg/utils/docent/tests/regress/rm38226.docent.yaml @@ -0,0 +1,62 @@ +# #38226 -- the text of an hgTracks item tooltip is cleaned before it reaches the page. +# A hub's mouseover can carry markup, and the tooltip is meant to show it: bold, italics, +# line breaks and links are why tooltips take markup at all. What changed is that the text +# now goes through htmlSanitize() on its way into the page, so elements and attributes +# outside its allowlist are removed and the rest is kept. +# +# The fixture hub is ours, at ~/public_html/docentFixtures/rm38226/. rm38226Tooltip is a +# bigBed 4 + with `mouseOverField description`, and each item's description holds one case: +# +# rm38226Bold rm38226 kept bold and plain text a kept element stays markup +# rm38226Class ... class is not on the allowlist +# rm38226Form text then