mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
implement historical srcElement attribute for Event interface
This commit is contained in:
parent
e81af16de8
commit
d721dcbd45
7 changed files with 6 additions and 27 deletions
|
@ -263,6 +263,11 @@ impl EventMethods for Event {
|
|||
self.target.get()
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-event-srcelement
|
||||
fn GetSrcElement(&self) -> Option<DomRoot<EventTarget>> {
|
||||
self.target.get()
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-event-currenttarget
|
||||
fn GetCurrentTarget(&self) -> Option<DomRoot<EventTarget>> {
|
||||
self.current_target.get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue