diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-10-10 13:44:28 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-11-01 09:50:14 -0500 |
commit | 9df375195eb389ae851acac525bc00f10421d36b (patch) | |
tree | b63b6ad5fe1b8b74685d2c716ac404d8c245bda1 /components/script/dom/nodelist.rs | |
parent | 37c03c78165fbb77eb024f2c3376d5e33cd7e446 (diff) | |
download | servo-9df375195eb389ae851acac525bc00f10421d36b.tar.gz servo-9df375195eb389ae851acac525bc00f10421d36b.zip |
Implement 'labels' attribute on 'labelable elements'
Diffstat (limited to 'components/script/dom/nodelist.rs')
-rw-r--r-- | components/script/dom/nodelist.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/nodelist.rs b/components/script/dom/nodelist.rs index 68e3b7ee424..f059cf6bbb6 100644 --- a/components/script/dom/nodelist.rs +++ b/components/script/dom/nodelist.rs @@ -51,6 +51,10 @@ impl NodeList { pub fn new_child_list(window: &Window, node: &Node) -> Root<NodeList> { NodeList::new(window, NodeListType::Children(ChildrenList::new(node))) } + + pub fn empty(window: &Window) -> Root<NodeList> { + NodeList::new(window, NodeListType::Simple(vec![])) + } } impl NodeListMethods for NodeList { |