Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse srcset algo #10829

Closed
wants to merge 10 commits into from

implementing parse srcset algo

  • Loading branch information
akhan7 committed Apr 24, 2016
commit c850f5c4c41f02baf33726f0d629e10057429187
@@ -247,6 +247,11 @@ impl HTMLImageElementMethods for HTMLImageElement {
// https://html.spec.whatwg.org/multipage/#dom-img-src
make_setter!(SetSrc, "src");

// https://html.spec.whatwg.org/multipage/#dom-img-srcset
//make_getter!(Srcset, "srcset");
// https://html.spec.whatwg.org/multipage/#dom-img-srcset
//make_setter!(SetsrcSet, "srcset");

// https://html.spec.whatwg.org/multipage/#dom-img-crossOrigin
make_enumerated_getter!(CrossOrigin, "crossorigin", "anonymous", ("use-credentials"));
// https://html.spec.whatwg.org/multipage/#dom-img-crossOrigin
@@ -398,3 +403,8 @@ fn image_dimension_setter(element: &Element, attr: Atom, value: u32) {
let value = AttrValue::Dimension(DOMString::from(value.to_string()), dim);
element.set_attribute(&attr, value);
}

fn parse_a_srcset_attribute(input: String){
let position = &input;

}
@@ -8,7 +8,7 @@
interface HTMLImageElement : HTMLElement {
attribute DOMString alt;
attribute DOMString src;
// attribute DOMString srcset;
// attribute DOMString srcset;
attribute DOMString crossOrigin;
attribute DOMString useMap;
attribute boolean isMap;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.