Auto merge of #7615 - frewsxcv:obsolete-link-anchor, r=nox

Add obsolete reflecting attributes on <a> and <link>

From my understanding, setting any of these will not affect any
presentational hints for the elements

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7615)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-09-13 10:47:32 -06:00
commit 6a21bcd9c5
7 changed files with 49 additions and 952 deletions

View file

@ -98,6 +98,30 @@ impl HTMLAnchorElementMethods for HTMLAnchorElement {
DOMTokenList::new(ElementCast::from_ref(self), &atom!("rel"))
})
}
// https://html.spec.whatwg.org/multipage/#dom-a-coords
make_getter!(Coords);
// https://html.spec.whatwg.org/multipage/#dom-a-coords
make_setter!(SetCoords, "coords");
// https://html.spec.whatwg.org/multipage/#dom-a-name
make_getter!(Name);
// https://html.spec.whatwg.org/multipage/#dom-a-name
make_setter!(SetName, "name");
// https://html.spec.whatwg.org/multipage/#dom-a-rev
make_getter!(Rev);
// https://html.spec.whatwg.org/multipage/#dom-a-rev
make_setter!(SetRev, "rev");
// https://html.spec.whatwg.org/multipage/#dom-a-shape
make_getter!(Shape);
// https://html.spec.whatwg.org/multipage/#dom-a-shape
make_setter!(SetShape, "shape");
}
impl Activatable for HTMLAnchorElement {

View file

@ -238,6 +238,24 @@ impl HTMLLinkElementMethods for HTMLLinkElement {
DOMTokenList::new(ElementCast::from_ref(self), &atom!("rel"))
})
}
// https://html.spec.whatwg.org/multipage/#dom-link-charset
make_getter!(Charset);
// https://html.spec.whatwg.org/multipage/#dom-link-charset
make_setter!(SetCharset, "charset");
// https://html.spec.whatwg.org/multipage/#dom-link-rev
make_getter!(Rev);
// https://html.spec.whatwg.org/multipage/#dom-link-rev
make_setter!(SetRev, "rev");
// https://html.spec.whatwg.org/multipage/#dom-link-target
make_getter!(Target);
// https://html.spec.whatwg.org/multipage/#dom-link-target
make_setter!(SetTarget, "target");
}
pub struct StylesheetLoadDispatcher {

View file

@ -30,9 +30,9 @@ interface HTMLAnchorElement : HTMLElement {
// https://www.whatwg.org/html/#HTMLAnchorElement-partial
partial interface HTMLAnchorElement {
// attribute DOMString coords;
attribute DOMString coords;
// attribute DOMString charset;
// attribute DOMString name;
// attribute DOMString rev;
// attribute DOMString shape;
attribute DOMString name;
attribute DOMString rev;
attribute DOMString shape;
};

View file

@ -20,7 +20,7 @@ interface HTMLLinkElement : HTMLElement {
// https://www.whatwg.org/html/#HTMLLinkElement-partial
partial interface HTMLLinkElement {
// attribute DOMString charset;
// attribute DOMString rev;
// attribute DOMString target;
attribute DOMString charset;
attribute DOMString rev;
attribute DOMString target;
};