-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.15, 4.0.9, 4.1.4, 4.2
This seems to be a side effect of MDL-69951 due to the way how clean option works https://tidy.sourceforge.net/docs/quickref.html#clean
If HTML tidy filter is enabled, it seems to be removing inline style tags.
Steps to replicate:
- Enable HTML tidy filter in your Moodle site.
- Create a page activity with the following content (HTML format):
<table>
<thead>
<tr>
<th style="border-width: 3px; border-style: solid; border-color: rgb(51, 51, 51);" scope="col">1</th>
<th style="border-width: 3px; border-style: solid; border-color: rgb(51, 51, 51);" scope="col">2</th>
</tr>
</thead>
<tbody>
<tr>
<td style="border-width: 3px; border-style: solid; border-color: rgb(51, 51, 51);"><strong>3</strong></td>
<td style="border-width: 3px; border-style: solid; border-color: rgb(51, 51, 51);"><strong>4</strong></td>
</tr>
</tbody>
</table>
- View the activity and confirm that borders are not displayed (style tags are removed).
- Disable HTML tidy filter.
- View the activity and confirm that borders are displayed (style tags are not removed).
- has been marked as being related by
-
MDL-69951 Adapt code to removed PHP tidy option 'drop-font-tags'
-
- Closed
-
- Testing discovered
-
MDLSITE-7344 Install php-tidy for sandbox.moodledemo.net
-
- Open
-