Support link target attribute

This commit is contained in:
Paul Rouget 2016-06-02 19:12:59 +08:00
parent cc7953e25e
commit b11bf86848
4 changed files with 7 additions and 136 deletions

View file

@ -139,6 +139,12 @@ impl HTMLAnchorElementMethods for HTMLAnchorElement {
// https://html.spec.whatwg.org/multipage/#dom-a-shape
make_setter!(SetShape, "shape");
// https://html.spec.whatwg.org/multipage/#attr-hyperlink-target
make_getter!(Target, "target");
// https://html.spec.whatwg.org/multipage/#attr-hyperlink-target
make_setter!(SetTarget, "target");
// https://html.spec.whatwg.org/multipage/#dom-hyperlink-hash
fn Hash(&self) -> USVString {
// Step 1.

View file

@ -12,7 +12,7 @@
// https://html.spec.whatwg.org/multipage/#htmlanchorelement
interface HTMLAnchorElement : HTMLElement {
// attribute DOMString target;
attribute DOMString target;
// attribute DOMString download;
//[PutForwards=value] attribute DOMSettableTokenList ping;
// attribute DOMString rel;