mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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
This commit is contained in:
parent
1e983d86c0
commit
c46508e497
16 changed files with 127 additions and 73 deletions
|
@ -16,7 +16,7 @@ use crate::dom::bindings::error::{Error, ErrorResult};
|
|||
use crate::dom::bindings::inheritance::Castable;
|
||||
use crate::dom::bindings::reflector::DomObject;
|
||||
use crate::dom::bindings::root::{Dom, DomRoot, LayoutDom, MutNullableDom, RootedReference};
|
||||
use crate::dom::bindings::str::DOMString;
|
||||
use crate::dom::bindings::str::{DOMString, USVString};
|
||||
use crate::dom::compositionevent::CompositionEvent;
|
||||
use crate::dom::document::Document;
|
||||
use crate::dom::element::{
|
||||
|
@ -769,7 +769,7 @@ impl HTMLInputElementMethods for HTMLInputElement {
|
|||
make_url_getter!(Src, "src");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-input-src
|
||||
make_setter!(SetSrc, "src");
|
||||
make_url_setter!(SetSrc, "src");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-input-step
|
||||
make_getter!(Step, "step");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue