Assuming you are logged in as a Super User:
<video src="images/big_buck_bunny_trailer_480p.mp4" autoplay controls width="854" height="315"></video>
Boolean attributes autoplay and controls are retained.
Boolean attributes autoplay and controls are removed.
Joomla 4.4.x amd Joomla 5.x
PHP 8.x
If the boolean attributes are set as the last attributes, then they are retained, eg:
<video src="images/big_buck_bunny_trailer_480p.mp4" width="854" height="315" autoplay controls></video>
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"
Labels |
Added:
No Code Attached Yet
|
Title |
|
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 :)
Is there any paraticular reason why we might not use DOMDocument to extract and process tags and attributes? Performance?