Forums | Mahara Community

Developers /
Question to HTMLPurifier


Karl May's profile picture
Posts: 1

23 June 2016, 4:29

Hello. In the actual mahara version is HTMLPurifier 4.7.0 included

https://github.com/MaharaProject/mahara/tree/master/htdocs/lib/htmlpurifier

 

What happened with HTML5 + CSS3 support that was in a older version available?

I mean files like

https://reviews.mahara.org/#/c/3680/4/htdocs/lib/htmlpurifier/HTMLPurifier/AttrDef/CSS/TransformFunction.php,unified

or

https://reviews.mahara.org/#/c/3680/4/htdocs/lib/htmlpurifier/HTMLPurifier/AttrDef/CSS/Angle.php

all extensions are missing. I have extend this old version with more HTML and CSS options and upgraded to 4.7.0 too. I only missing support for CSS gradient in this time. Have anyone included support for gradient in HTMLPurifier 4.7.0 for mahara or general?

Edits to this post:

Aaron Wells's profile picture
Posts: 896

23 June 2016, 17:04

Hi Karl,

We've had a bug in Launchpad for quite a while now, to add more support for CSS3 attributes into our HTMLPurifier: https://bugs.launchpad.net/mahara/+bug/1264098

Unfortunately, it has kind of stalled, because we could never find a good, authoritative source on what attributes we should include.

The files that you linked to are from a Gerrit patch for Bug 1264098, which never got merged into core. As you've noticed, that patch does need to be updated now for HTMLPurifier 4.7.

Cheers,

Aaron

2 results