Support [*|attr], attribute selectors in any namespace (fixes #1558)

This commit is contained in:
Tim Taubert 2014-10-06 16:02:19 +02:00
parent 070b6046aa
commit b9e23563bb
7 changed files with 57 additions and 10 deletions

View file

@ -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;