Open ryandemmer opened 5 months ago
Is there any paraticular reason why we might not use DOMDocument to extract and process tags and attributes? Performance?
The filtering is done by the framework filter package. The problem most likely is in InputFilter::remove()
. At least for now, it would have to be fixed there. @ryandemmer would you be willing to work on this and create a PR against the 2.x-dev branch? https://github.com/joomla-framework/filter
Please also extend the tests to check for this situation, so that we are sure this is covered.
@ryandemmer would you be willing to work on this and create a PR against the 2.x-dev branch? https://github.com/joomla-framework/filter
I'll certainly give it my best shot :)
Steps to reproduce the issue
Assuming you are logged in as a Super User:
Expected result
Boolean attributes autoplay and controls are retained.
Actual result
Boolean attributes autoplay and controls are removed.
System information (as much as possible)
Joomla 4.4.x amd Joomla 5.x PHP 8.x
Additional comments
If the boolean attributes are set as the last attributes, then they are retained, eg:
The boolean attributes are still removed if they have empty values, eg: controls="" The boolean attributes are not removed if they have non-empty values, eg: controls="controls"