mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Enforce linking to spec for method implementations via macros
This commit is contained in:
parent
7474b29510
commit
3a1d140ab5
23 changed files with 137 additions and 11 deletions
|
@ -228,9 +228,16 @@ impl WebSocket {
|
|||
}
|
||||
|
||||
impl WebSocketMethods for WebSocket {
|
||||
// https://html.spec.whatwg.org/multipage/#handler-websocket-onopen
|
||||
event_handler!(open, GetOnopen, SetOnopen);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#handler-websocket-onclose
|
||||
event_handler!(close, GetOnclose, SetOnclose);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#handler-websocket-onerror
|
||||
event_handler!(error, GetOnerror, SetOnerror);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#handler-websocket-onmessage
|
||||
event_handler!(message, GetOnmessage, SetOnmessage);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-websocket-url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue