Fix ContainerNode::getElementById() with empty ID differently
We previously tried to fix this in Ia65024efef9e5ef54d9db233590a17b372282ed1, but it appears that we were overly optimistic. This commit puts in place a more conversative fix that does not change anything other than ContainerNode::getElementById(). Note that this is a different function from Document::getElementById(). Instead of filtering out the empty ID in AttributeChanged(), put an empty-string special case in ContainerNode::getElementById(), similar to what is currently done for Document::getElementById(). This fixes the original bug without implicating other parts of Blink. Fixed: 1068580 Change-Id: Ib54bbc444babd9cbae4409cdecc09640bcb757c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2146787Reviewed-by:Kent Tamura <tkent@chromium.org> Commit-Queue: Timothy Gu <timothygu@chromium.org> Cr-Commit-Position: refs/heads/master@{#758647}
Showing
Please register or sign in to comment