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 :

M

tsame page other pageto the top
no name at all
out:

M

tsame page other pageto the top
no name at all
in :
cell
out:
cell
in :

a

-out:

a

+out:

a

(removed the value of the style property list-style) in :

a

out:

a

in : ax out: ax (removed a link that used the javascript: scheme) in :

real

out: (removed the value of the svg attribute fill) (removed the value of the svg attribute stroke) in : out: (removed the defs element and everything inside it) in : text after out: text after +in :
cell
+out:
cell
+ +in : https://http_host/h/GCA_1 +out: https://http_host/h/GCA_1 + +in :

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) +