mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Support link target attribute
This commit is contained in:
parent
cc7953e25e
commit
b11bf86848
4 changed files with 7 additions and 136 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue