mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Set url attribute
This commit is contained in:
parent
2a7862540c
commit
37aa21d8db
2 changed files with 12 additions and 7 deletions
|
@ -112,8 +112,8 @@ macro_rules! make_url_setter(
|
|||
use crate::dom::bindings::inheritance::Castable;
|
||||
use crate::dom::element::Element;
|
||||
let element = self.upcast::<Element>();
|
||||
element.set_string_attribute(&local_name!($htmlname),
|
||||
DOMString::from(value.0));
|
||||
element.set_url_attribute(&local_name!($htmlname),
|
||||
value);
|
||||
}
|
||||
);
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue