diff options
author | Dan Robertson <dan@dlrobertson.com> | 2018-12-14 03:59:03 +0000 |
---|---|---|
committer | Dan Robertson <dan@dlrobertson.com> | 2018-12-17 15:28:42 +0000 |
commit | c46508e497e503c8fd42deb26aa536060334a9c9 (patch) | |
tree | 526fba0f92f508c9e54559cde967241dd118378f /components/script/dom/htmllinkelement.rs | |
parent | 1e983d86c05d988779177775ee1ef9b835400960 (diff) | |
download | servo-c46508e497e503c8fd42deb26aa536060334a9c9.tar.gz servo-c46508e497e503c8fd42deb26aa536060334a9c9.zip |
Update src/href attributes to be a USVString
The following IDLs have the src/href attributes typed as a DOMString
while in the spec the attribute has been updated to be a USVString:
- HTMLIFrameElement
- HTMLImageElement
- HTMLInputElement
- HTMLLinkElement
- HTMLMediaElement
- HTMLScriptElement
Diffstat (limited to 'components/script/dom/htmllinkelement.rs')
-rw-r--r-- | components/script/dom/htmllinkelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmllinkelement.rs b/components/script/dom/htmllinkelement.rs index 8c0be3c67b4..f51010cf7ff 100644 --- a/components/script/dom/htmllinkelement.rs +++ b/components/script/dom/htmllinkelement.rs @@ -9,7 +9,7 @@ use crate::dom::bindings::codegen::Bindings::HTMLLinkElementBinding; use crate::dom::bindings::codegen::Bindings::HTMLLinkElementBinding::HTMLLinkElementMethods; use crate::dom::bindings::inheritance::Castable; use crate::dom::bindings::root::{DomRoot, MutNullableDom, RootedReference}; -use crate::dom::bindings::str::DOMString; +use crate::dom::bindings::str::{DOMString, USVString}; use crate::dom::cssstylesheet::CSSStyleSheet; use crate::dom::document::Document; use crate::dom::domtokenlist::DOMTokenList; @@ -389,7 +389,7 @@ impl HTMLLinkElementMethods for HTMLLinkElement { make_url_getter!(Href, "href"); // https://html.spec.whatwg.org/multipage/#dom-link-href - make_setter!(SetHref, "href"); + make_url_setter!(SetHref, "href"); // https://html.spec.whatwg.org/multipage/#dom-link-rel make_getter!(Rel, "rel"); |