3842ba31ab0b697b0d4026b5751da7dac7c84e35 braney Tue Sep 29 13:49:49 2026 -0700 htmlSanitize: keep the stdTbl and copyLinkSpan class names, refs #38126 GenArk description pages use these two classes from our own stylesheet and scripts: stdTbl for bordered tables, and copyLinkSpan with data-target for the Copy button next to the share link. They now come through, and data-target gets the same prefix as the id it names. Style values are now read the same way on every pass, so a page that is saved again comes out unchanged. Over the 5390-page hub corpus, 278 pages change, all in class or data-target only, and no page's text changes. diff --git src/lib/tests/expected/htmlSanitizeTest src/lib/tests/expected/htmlSanitizeTest index 5a9d6b454ce..f1f789d8b08 100644 --- src/lib/tests/expected/htmlSanitizeTest +++ src/lib/tests/expected/htmlSanitizeTest @@ -1,122 +1,146 @@ in :
Text
out:Text
in :before
after
out:before
after
(removed the script element and everything inside it) (removed the style element and everything inside it) in :before
text
| cell |
| cell |
a
+out:a
+ +in :a
+out:a
+ (removed the value of the style property list-style) + +in :a
+out:a
+ +in :a
+out:a
+ (removed the value of the style property list-style) + +in :a
+out:a
+ (removed the value of the style property color) +