mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Support [*|attr], attribute selectors in any namespace (fixes #1558)
This commit is contained in:
parent
070b6046aa
commit
b9e23563bb
7 changed files with 57 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue