AntiSamy sanitizer - add support for "ol[start]"

تم تعديل Václav Suchánek منذ 2 سنوات من الدقائق. Junior Member المشاركات: 26 تاريخ الإنضمام: 15‏/8‏/18 المشاركات الحديثة

Hello,

It would be nice to add support for "start" attribute within "ol" tag:
https://www.w3schools.com/tags/tag_ol.asp

There is support only for "type" attribute:
https://github.com/liferay/liferay-portal/blob/master/modules/apps/portal-security/portal-security-antisamy/src/main/resources/META-INF/resources/sanitizer-configuration.xml#L815

Now we have to make an override for "com.liferay.portal.security.antisamy.jar", but if it is a standard HTML5 attribute - why it is not added by default?

Thanks,

Best Regards,

Václav

thumbnail
تم تعديل Václav Suchánek منذ 2 سنوات من الدقائق. Liferay Master المشاركات: 764 تاريخ الإنضمام: 5‏/1‏/10 المشاركات الحديثة

Hi Václav,

I can only guess. I think it may have been left out because the start attribute of the ol tag was being deprecated for a while before it was brought back.

Watch https://liferay.atlassian.net/browse/LPD-21192.

Regards,
Zsigmond

تم تعديل Václav Suchánek منذ 2 سنوات من الدقائق. Junior Member المشاركات: 26 تاريخ الإنضمام: 15‏/8‏/18 المشاركات الحديثة

Thank you, Zsigmond.

thumbnail
تم تعديل Zsigmond Rab منذ 2 سنوات من الدقائق. Liferay Master المشاركات: 764 تاريخ الإنضمام: 5‏/1‏/10 المشاركات الحديثة

Hi Václav,

In the meantime, we decided to handle this as a bug: https://liferay.atlassian.net/browse/LPD-21547

Regards,
Zsigmond

تم تعديل Václav Suchánek منذ 2 سنوات من الدقائق. Junior Member المشاركات: 26 تاريخ الإنضمام: 15‏/8‏/18 المشاركات الحديثة

It is great. Thank you for your fast response.