Skip to content

Commit 81c22ea

Browse files
authored
Add HTMLAnchorElement#download
1 parent 9e89d7c commit 81c22ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dom/src/main/scala/org/scalajs/dom/HTMLAnchorElement.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ import scala.scalajs.js.annotation._
1616
@js.native
1717
@JSGlobal
1818
abstract class HTMLAnchorElement extends HTMLElement {
19+
20+
/**
21+
* A string indicating that the linked resource is intended to be downloaded rather than displayed in the
22+
* browser. The value represent the proposed name of the file. If the name is not a valid filename of the
23+
* underlying OS, browser will adapt it.
24+
*/
25+
var download: String = js.native
1926

2027
/** Is a DOMString that reflects the rel HTML attribute, specifying the relationship of the target object to the link
2128
* object.

0 commit comments

Comments
 (0)