Platform/HTML5 sanitizer: Difference between revisions

no edit summary
No edit summary
Line 3: Line 3:
* Allow a setting for enabling styles.
* Allow a setting for enabling styles.
* Allow a setting for enabling comments. See {{bug|572642}}
* Allow a setting for enabling comments. See {{bug|572642}}
* Have a white list of elements.
* Have three element white lists: HTML, SVG and MathML.
* Have a white list of attributes. The attributes don't depend on the element they are on.
* Have three attribute white lists: HTML, SVG and MathML. The attributes don't depend on the element they are on beyond the element namespace.
* Have a list of attributes that take URLs. Drop the attributes when they have prohibited URLs (after trimming whitespace from the value).
* Have a list of attributes that take URLs. Drop the attributes when they have prohibited URLs (after trimming whitespace from the value).
** Resolve relative URLs into absolute ones using a per fragment base URL. (Is this correct for Gecko reqs?)
** Resolve relative URLs into absolute ones using a per fragment base URL. (Is this correct for Gecko reqs?)
254

edits