aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlareaelement.rs
diff options
context:
space:
mode:
authorGeorge Roman <george.roman.99@gmail.com>2019-02-08 11:36:06 +0200
committerGeorge Roman <george.roman.99@gmail.com>2019-02-11 10:42:58 +0200
commit90b5d0d338e0fe036c4d408bd4561ef5dc885980 (patch)
tree7fbd917cd9ac8ed8d94250346c82213939263b83 /components/script/dom/htmlareaelement.rs
parent71ba247942a95d1511c9fa62f06d860fcc03de1c (diff)
downloadservo-90b5d0d338e0fe036c4d408bd4561ef5dc885980.tar.gz
servo-90b5d0d338e0fe036c4d408bd4561ef5dc885980.zip
Implement the target attribute for HTMLAreaElement
Diffstat (limited to 'components/script/dom/htmlareaelement.rs')
-rw-r--r--components/script/dom/htmlareaelement.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/htmlareaelement.rs b/components/script/dom/htmlareaelement.rs
index 37d020e684f..dfa84bb7ac4 100644
--- a/components/script/dom/htmlareaelement.rs
+++ b/components/script/dom/htmlareaelement.rs
@@ -299,6 +299,12 @@ impl VirtualMethods for HTMLAreaElement {
}
impl HTMLAreaElementMethods for HTMLAreaElement {
+ // 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-area-rellist
fn RelList(&self) -> DomRoot<DOMTokenList> {
self.rel_list