mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Fix #1264: support namespaced attribute selectors.
This commit is contained in:
parent
4b3defb282
commit
b290823f4d
10 changed files with 27 additions and 29 deletions
|
@ -58,7 +58,7 @@ impl HTMLDocument {
|
|||
pub fn Links(&self) -> @mut HTMLCollection {
|
||||
self.parent.createHTMLCollection(|elem|
|
||||
(eq_slice(elem.tag_name, "a") || eq_slice(elem.tag_name, "area"))
|
||||
&& elem.get_attr("href").is_some())
|
||||
&& elem.get_attr(None, "href").is_some())
|
||||
}
|
||||
|
||||
pub fn Forms(&self) -> @mut HTMLCollection {
|
||||
|
@ -71,7 +71,7 @@ impl HTMLDocument {
|
|||
|
||||
pub fn Anchors(&self) -> @mut HTMLCollection {
|
||||
self.parent.createHTMLCollection(|elem|
|
||||
eq_slice(elem.tag_name, "a") && elem.get_attr("name").is_some())
|
||||
eq_slice(elem.tag_name, "a") && elem.get_attr(None, "name").is_some())
|
||||
}
|
||||
|
||||
pub fn Applets(&self) -> @mut HTMLCollection {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue