WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
189146
Add assignedElements to HTMLSlotElement
https://bugs.webkit.org/show_bug.cgi?id=189146
Summary
Add assignedElements to HTMLSlotElement
Ryosuke Niwa
Reported
2018-08-29 22:30:09 PDT
Add a variant of assignedNodes which returns elements. Added in
https://github.com/whatwg/html/pull/2269
.
Attachments
Adds the method
(7.44 KB, patch)
2018-08-29 22:43 PDT
,
Ryosuke Niwa
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2018-08-29 22:43:33 PDT
Created
attachment 348485
[details]
Adds the method
Radar WebKit Bug Importer
Comment 2
2018-08-29 22:44:31 PDT
<
rdar://problem/43872965
>
Darin Adler
Comment 3
2018-08-30 09:03:57 PDT
Comment on
attachment 348485
[details]
Adds the method View in context:
https://bugs.webkit.org/attachment.cgi?id=348485&action=review
> Source/WebCore/html/HTMLSlotElement.h:43 > Vector<Node*> assignedNodes(const AssignedNodesOptions&) const; > + Vector<Ref<Element>> assignedElements(const AssignedNodesOptions&) const;
Why does assignedNodes return Node* instead of Ref<Node>? Why not make the two consistent?
Ryosuke Niwa
Comment 4
2018-08-30 18:58:48 PDT
(In reply to Darin Adler from
comment #3
)
> Comment on
attachment 348485
[details]
> Adds the method > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=348485&action=review
> > > Source/WebCore/html/HTMLSlotElement.h:43 > > Vector<Node*> assignedNodes(const AssignedNodesOptions&) const; > > + Vector<Ref<Element>> assignedElements(const AssignedNodesOptions&) const; > > Why does assignedNodes return Node* instead of Ref<Node>? Why not make the > two consistent?
That's a good point. Since we're making a copy in both cases, we should probably always return Vector<Ref<~>>. Will fix before landing.
Ryosuke Niwa
Comment 5
2018-08-30 19:26:28 PDT
Committed
r235535
: <
https://trac.webkit.org/changeset/235535
>
Anne van Kesteren
Comment 6
2019-10-16 00:31:47 PDT
***
Bug 180908
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug