HomePhabricator

Convert if-block to while-block for repeated annotations

Description

Convert if-block to while-block for repeated annotations

If the same annotation appears twice on an element we
need to remap each instance, not just the first.

This caused an exception to be thrown when pasting external
HTML that contained nested duplicate annotations that needed
sanitization.

Bug: T215741
Change-Id: I56235308f24f0bc470ed289fc477ab6b08037f59

Details

Provenance
EsandersAuthored on Feb 11 2019, 12:50 PM
Parents
rGVEDc4d559b29420: Remove duplication of action in AnnotationInspector
Branches
Unknown
Tags
Unknown
ChangeId
I56235308f24f0bc470ed289fc477ab6b08037f59