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

Issue 2868823002: getElementsByTagName() should take a qualifiedName in parameter (Closed)

Created:
3 years, 7 months ago by Shanmuga Pandi
Modified:
3 years, 7 months ago
Reviewers:
tkent, fs, foolip
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

getElementsByTagName() should take a qualifiedName in parameter getElementsByTagName() should take a qualifiedName in parameter, not a localName, according to the latest DOM specification: https://dom.spec.whatwg.org/#dom-document-getelementsbytagname https://dom.spec.whatwg.org/#concept-getelementsbytagname Webkit patch: https://trac.webkit.org/changeset/204441/ Intent to implement and ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/jBph1e0CekY BUG=645165 Review-Url: https://codereview.chromium.org/2868823002 Cr-Commit-Position: refs/heads/master@{#471643} Committed: https://chromium.googlesource.com/chromium/src/+/5025bccfe31b6c49a1e868d58568a89c75b3f338

Patch Set 1 #

Patch Set 2 : Added new file AllDescendantsCollection.h #

Total comments: 16

Patch Set 3 : Rebased And Align with review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -379 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-getElementsByTagName-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-getElementsByTagName-xhtml-expected.txt View 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Element-getElementsByTagName-expected.txt View 1 chunk +4 lines, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/dom/nodes/case-expected.txt View 1 chunk +0 lines, -289 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ContainerNode.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ContainerNode.cpp View 1 2 1 chunk +13 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/dom/NodeListsNodeData.h View 6 chunks +16 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/dom/NodeListsNodeData.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TagCollection.h View 1 2 3 chunks +31 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TagCollection.cpp View 1 2 1 chunk +19 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/CollectionType.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCollection.cpp View 1 2 5 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTagCollection.h View 1 2 2 chunks +10 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTagCollection.cpp View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
Shanmuga Pandi
PTAL! Thanks.
3 years, 7 months ago (2017-05-08 12:01:09 UTC) #2
foolip
On 2017/05/08 12:01:09, Shanmuga Pandi wrote: > PTAL! > > Thanks. I won't have time ...
3 years, 7 months ago (2017-05-08 13:24:32 UTC) #5
fs
https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/dom/TagCollection.cpp File third_party/WebKit/Source/core/dom/TagCollection.cpp (right): https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/dom/TagCollection.cpp#newcode42 third_party/WebKit/Source/core/dom/TagCollection.cpp:42: return qualified_name_ == test_node.TagQName().ToString(); See comment in HTMLTagCollection. https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/dom/TagCollection.h ...
3 years, 7 months ago (2017-05-08 14:20:37 UTC) #6
tkent
Why do you introduce two new CollectionTypes? Implementing new logic in TagCollection would be simpler. ...
3 years, 7 months ago (2017-05-09 00:28:01 UTC) #9
Shanmuga Pandi
https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/html/HTMLTagCollection.h File third_party/WebKit/Source/core/html/HTMLTagCollection.h (right): https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/html/HTMLTagCollection.h#newcode61 third_party/WebKit/Source/core/html/HTMLTagCollection.h:61: if (test_element.IsHTMLElement()) On 2017/05/09 00:28:01, tkent wrote: > The ...
3 years, 7 months ago (2017-05-10 06:35:45 UTC) #10
Shanmuga Pandi
https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/html/HTMLTagCollection.h File third_party/WebKit/Source/core/html/HTMLTagCollection.h (right): https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/html/HTMLTagCollection.h#newcode63 third_party/WebKit/Source/core/html/HTMLTagCollection.h:63: return qualified_name_ == test_element.TagQName().ToString(); On 2017/05/08 14:20:36, fs wrote: ...
3 years, 7 months ago (2017-05-10 07:05:28 UTC) #12
fs
https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/html/HTMLTagCollection.h File third_party/WebKit/Source/core/html/HTMLTagCollection.h (right): https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/html/HTMLTagCollection.h#newcode61 third_party/WebKit/Source/core/html/HTMLTagCollection.h:61: if (test_element.IsHTMLElement()) On 2017/05/10 at 06:35:45, Shanmuga Pandi wrote: ...
3 years, 7 months ago (2017-05-10 08:34:15 UTC) #13
Shanmuga Pandi
https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/html/HTMLTagCollection.h File third_party/WebKit/Source/core/html/HTMLTagCollection.h (right): https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/html/HTMLTagCollection.h#newcode63 third_party/WebKit/Source/core/html/HTMLTagCollection.h:63: return qualified_name_ == test_element.TagQName().ToString(); On 2017/05/10 08:34:15, fs wrote: ...
3 years, 7 months ago (2017-05-10 09:03:12 UTC) #14
Shanmuga Pandi
PTAL! https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/dom/TagCollection.h File third_party/WebKit/Source/core/dom/TagCollection.h (right): https://codereview.chromium.org/2868823002/diff/20001/third_party/WebKit/Source/core/dom/TagCollection.h#newcode63 third_party/WebKit/Source/core/dom/TagCollection.h:63: static TagCollectionNS* Create(ContainerNode& root_node, On 2017/05/08 14:20:36, fs ...
3 years, 7 months ago (2017-05-10 12:17:22 UTC) #15
tkent
Thank you for removing AllDescendantsCollection. It made the code cleaner. The logic looks ok. However, ...
3 years, 7 months ago (2017-05-11 04:14:03 UTC) #20
Shanmuga Pandi
On 2017/05/11 04:14:03, tkent wrote: > Thank you for removing AllDescendantsCollection. It made the code ...
3 years, 7 months ago (2017-05-11 11:45:11 UTC) #21
tkent
On 2017/05/11 at 11:45:11, shanmuga.m wrote: > I have tried your suggestion. But it is ...
3 years, 7 months ago (2017-05-12 07:36:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2868823002/40001
3 years, 7 months ago (2017-05-14 21:15:14 UTC) #24
commit-bot: I haz the power
3 years, 7 months ago (2017-05-14 23:10:37 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5025bccfe31b6c49a1e868d58568...

Powered by Google App Engine
This is Rietveld 408576698