Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Issue 93863004: Regression(r164102): CSS Selector queries on duplicate ids match non-descendant elements (Closed)

Created:
6 years, 11 months ago by Inactive
Modified:
6 years, 10 months ago
CC:
blink-reviews, dglazkov+blink, sof, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Regression(r164102): CSS Selector queries on duplicate ids match non-descendant elements After r164102, CSS Selector queries on duplicate ids match non-descendant elements. It returns ALL elements with the given identifier, without checking that these are descendant of the scope Element. This CL adds the missing scope check. BUG=331692 TEST=fast/dom/SelectorAPI/duplicate-id-scope.html R=esprehn, abarth Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164484

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
A LayoutTests/fast/dom/SelectorAPI/duplicate-id-scope.html View 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/SelectorAPI/duplicate-id-scope-expected.txt View 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/dom/SelectorQuery.cpp View 2 chunks +4 lines, -0 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Inactive
Sorry I missed that in my earlier patch.
6 years, 11 months ago (2014-01-05 20:29:48 UTC) #1
Inactive
https://codereview.chromium.org/93863004/diff/1/Source/core/dom/SelectorQuery.cpp File Source/core/dom/SelectorQuery.cpp (right): https://codereview.chromium.org/93863004/diff/1/Source/core/dom/SelectorQuery.cpp#newcode468 Source/core/dom/SelectorQuery.cpp:468: if (!(isTreeScopeRoot(rootNode) || element->isDescendantOf(&rootNode))) FYI, I am planning on ...
6 years, 11 months ago (2014-01-05 20:46:33 UTC) #2
esprehn
Lgtm To unsubscribe from this group and stop receiving emails from it, send an email ...
6 years, 11 months ago (2014-01-05 21:36:55 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/93863004/1
6 years, 11 months ago (2014-01-05 21:51:52 UTC) #4
commit-bot: I haz the power
6 years, 11 months ago (2014-01-06 04:23:55 UTC) #5
Message was sent while issue was closed.
Change committed as 164484

Powered by Google App Engine
This is Rietveld 408576698