mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Implement 'labels' attribute on 'labelable elements'
This commit is contained in:
parent
37c03c7816
commit
9df375195e
22 changed files with 184 additions and 63 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue