mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Auto merge of #11554 - paulrouget:targetProperty, r=Ms2ger
Support link target attribute <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11554) <!-- Reviewable:end -->
This commit is contained in:
commit
e7241c8215
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