Hi, I noticed that the template file used to output item metadata (resource-values.phtml) produces HTML like the following:
<dl>
<div class="property">
<dt>
A title
</dt>
<dd class="value" lang="">
<span class="value-content">A value</span>
</dd>
</div>
<div class="property">
<dt>
Another title
</dt>
<dd class="value" lang="">
<span class="value-content">Another value</span>
</dd>
</div>
</dl>
which conforms to the rule that allows name-value groups <dt><dd> to be wrapped in a <div> element (see <dl>: The Description List element - HTML | MDN).
Now if you create a site page, add a HTML block, paste the above code in “source mode” and click “OK”, the resulting HTML gets modified as follow:
<div class="property">
<dl>
<dt>A title</dt>
<dd class="value"><span class="value-content">A value</span></dd>
</dl>
</div>
<div class="property">
<dl>
<dt>Another title</dt>
<dd class="value"><span class="value-content">Another value</span></dd>
</dl>
</div>
Does someone know which “purifier” does corrupt the HTML?
As a follow-up, I note that the HTML Purifier is not the root of the problem.
As the HTML content gets “purified” when one clicks ont the OK button at the bottom of the text box, I think that this behaviour is related to the CKEditor plugin (v4.20 as shown below) in some way.

Reading the CKEditor Ecosystem Documentation, I see that the editor content filtering feature (called “ACF”) was introduced in CKEditor 4.1 and that you can disable this feature:
So returning to the CKEditor instance launched by Omeka’s page editor, I locate its config file and see that the ACF is already disabled:
Does one know what’s behind the o:ckeditor-config trigger?
I don’t think there’s much happening with that trigger typically; it’s there just to allow things to modify the config if they have to, but not much really has to do that.
My guess would be this is going to be something that’s hard to make CKEditor not do. As you saw we already tell it as much as possible to leave the HTML alone, but it does some transformations in a non-configurable way just as part of parsing the HTML, is my recollection.
Thanks for the info. Do you know if there is a regular way to disable CKEditor in the HTML block or if there is a simple “unfiltered” block?