Remove attributes that are being adopted

The XML parser can produce elements with attributes whose names have
distinct prefixes, but the same expanded name. When one of these
attributes is put up for adoption, it may be its similarly named
sibling that is removed from its owner element. As a result the
original owner hangs onto the adopted attribute, despite the fact that
it is now in a different document. Sometimes it's just hard to let go.

BUG=236845
R=dglazkov@chromium.org

Review URL: https://codereview.chromium.org/14619012

git-svn-id: svn://svn.chromium.org/blink/trunk@150067 bbb929c8-8fbe-4397-9dbb-9b2b20218538
4 files changed