mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement referrerpolicy attribute on remaining elements (#34736)
Fixes #11861 Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
parent
09408ae10b
commit
41f27ae80b
9 changed files with 25 additions and 413 deletions
|
@ -24,7 +24,7 @@ use crate::dom::bindings::root::{DomRoot, MutNullableDom};
|
|||
use crate::dom::bindings::str::{DOMString, USVString};
|
||||
use crate::dom::document::Document;
|
||||
use crate::dom::domtokenlist::DOMTokenList;
|
||||
use crate::dom::element::{AttributeMutation, Element};
|
||||
use crate::dom::element::{reflect_referrer_policy_attribute, AttributeMutation, Element};
|
||||
use crate::dom::event::Event;
|
||||
use crate::dom::eventtarget::EventTarget;
|
||||
use crate::dom::htmlelement::HTMLElement;
|
||||
|
@ -582,6 +582,14 @@ impl HTMLAnchorElementMethods<crate::DomTypeHolder> for HTMLAnchorElement {
|
|||
// Step 5.
|
||||
self.update_href(url, can_gc);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-a-referrerpolicy
|
||||
fn ReferrerPolicy(&self) -> DOMString {
|
||||
reflect_referrer_policy_attribute(self.upcast::<Element>())
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-script-referrerpolicy
|
||||
make_setter!(SetReferrerPolicy, "referrerpolicy");
|
||||
}
|
||||
|
||||
impl Activatable for HTMLAnchorElement {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue