mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Change AttrValue::Url to AttrValue::ResolvedUrl
There is actually only one attribute that can use that, the one for <body background>.
This commit is contained in:
parent
8b366a7441
commit
c7b1d3054f
9 changed files with 48 additions and 72 deletions
|
@ -530,7 +530,7 @@ impl HTMLInputElementMethods for HTMLInputElement {
|
|||
make_url_getter!(Src, "src");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-input-src
|
||||
make_url_setter!(SetSrc, "src");
|
||||
make_setter!(SetSrc, "src");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-input-step
|
||||
make_getter!(Step, "step");
|
||||
|
@ -1056,7 +1056,6 @@ impl VirtualMethods for HTMLInputElement {
|
|||
|
||||
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue {
|
||||
match name {
|
||||
&local_name!("src") => AttrValue::from_url(document_from_node(self).base_url(), value.into()),
|
||||
&local_name!("accept") => AttrValue::from_comma_separated_tokenlist(value.into()),
|
||||
&local_name!("name") => AttrValue::from_atomic(value.into()),
|
||||
&local_name!("size") => AttrValue::from_limited_u32(value.into(), DEFAULT_INPUT_SIZE),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue