diff options
author | Tim Taubert <tim@timtaubert.de> | 2014-10-06 16:02:19 +0200 |
---|---|---|
committer | Tim Taubert <tim@timtaubert.de> | 2014-10-08 11:01:31 +0200 |
commit | b9e23563bb9940ece621d3f6a969a5e08e1bd82b (patch) | |
tree | 981ee905456f2cb51975f6955ae75344569ec8fc /components/style/node.rs | |
parent | 070b6046aa9a7869e2ca53f69d7a349afbec09c4 (diff) | |
download | servo-b9e23563bb9940ece621d3f6a969a5e08e1bd82b.tar.gz servo-b9e23563bb9940ece621d3f6a969a5e08e1bd82b.zip |
Support [*|attr], attribute selectors in any namespace (fixes #1558)
Diffstat (limited to 'components/style/node.rs')
-rw-r--r-- | components/style/node.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/style/node.rs b/components/style/node.rs index 75d098563c2..450e6655e35 100644 --- a/components/style/node.rs +++ b/components/style/node.rs @@ -23,6 +23,7 @@ pub trait TNode<'a, E: TElement<'a>> : Clone + Copy { pub trait TElement<'a> : Copy { fn get_attr(self, namespace: &Namespace, attr: &str) -> Option<&'a str>; + fn get_attrs(self, attr: &str) -> Vec<&'a str>; fn get_link(self) -> Option<&'a str>; fn get_local_name(self) -> &'a Atom; fn get_namespace(self) -> &'a Namespace; |