aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlanchorelement.rs
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2016-06-02 19:12:59 +0800
committerPaul Rouget <me@paulrouget.com>2016-06-02 19:12:59 +0800
commitb11bf8684833fa72770288f065e6a77065deddf2 (patch)
treec483bb1ddd24a7ed2087e52634fe602138c2a3c4 /components/script/dom/htmlanchorelement.rs
parentcc7953e25eaf6221a0e6e31af43214d0807185eb (diff)
downloadservo-b11bf8684833fa72770288f065e6a77065deddf2.tar.gz
servo-b11bf8684833fa72770288f065e6a77065deddf2.zip
Support link target attribute
Diffstat (limited to 'components/script/dom/htmlanchorelement.rs')
-rw-r--r--components/script/dom/htmlanchorelement.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs
index 37daa0ef6e0..95d03872ac5 100644
--- a/components/script/dom/htmlanchorelement.rs
+++ b/components/script/dom/htmlanchorelement.rs
@@ -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.