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 @@ -62,31 +62,31 @@ in :
after
out:after
(removed the form element and everything inside it) in :shown
out:shown
in :| cell |
| cell |
a
-out:a
+out:a
(removed the value of the style property list-style) in :a
out:a
in :
x
out:
x
(removed a link that used the javascript: scheme)
in : real
| 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) +