Page MenuHomePhabricator

Give Sanitizer a HTML5 makeover
Closed, DuplicatePublic

Description

The Parsoid Sanitizer (which is a port of the PHP Sanitizer) has various references to the HTML4.x standards. And, there are wikitext dialectical drifts with HTML5 as well. We should migrate everything (even if it is just documentation) over to HTML5 and minimize the dialectical differences as far as possible.

This is a post-port and possibly a post-parser-unification project.

Related task:
We could either do this to the core Sanitizer code and have Parsoid reuse that component, or fix Parsoid's version and move that over to core or we could move sanitization to its own library .. whatever makes sense. But, one thing worth noting is that Parsoid does sanitization on tokens whereas core Sanitizer does sanitization on html. So, the unification is not entirely straightforward. It would require some refactoring to expose commonalities and leave the token or html specific wrappers in Parsoid and core.

Event Timeline

ssastry renamed this task from Give Sanitizer a HTML5 makover. to Give Sanitizer a HTML5 makeover.Apr 22 2019, 4:18 PM
ssastry triaged this task as Medium priority.
ssastry moved this task from Backlog to Post-Port Work on the Parsoid-PHP board.