Set url attribute

This commit is contained in:
Shanavas M 2019-01-11 14:35:54 +05:30
parent 2a7862540c
commit 37aa21d8db
2 changed files with 12 additions and 7 deletions

View file

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