mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
implement window alert with no params
This commit is contained in:
parent
116faa7617
commit
d72dbb6198
4 changed files with 24 additions and 1 deletions
|
@ -430,6 +430,11 @@ pub fn base64_atob(input: DOMString) -> Fallible<DOMString> {
|
|||
}
|
||||
|
||||
impl WindowMethods for Window {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-alert
|
||||
fn Alert_(&self) {
|
||||
self.Alert(DOMString::new());
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-alert
|
||||
fn Alert(&self, s: DOMString) {
|
||||
// Right now, just print to the console
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue