Skip to content

Commit f644d7a

Browse files
authored
Merge pull request #784 from faveoled/patch-3
Add `HTMLAnchorElement#download`
2 parents 29b62ae + 97f89ff commit f644d7a

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

api-reports/2_12.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2380,6 +2380,7 @@ HTMLAnchorElement[JC] var contentEditable: String
23802380
HTMLAnchorElement[JC] def dataset: js.Dictionary[String]
23812381
HTMLAnchorElement[JC] var dir: String
23822382
HTMLAnchorElement[JC] def dispatchEvent(evt: Event): Boolean
2383+
HTMLAnchorElement[JC] var download: String
23832384
HTMLAnchorElement[JC] var draggable: Boolean
23842385
HTMLAnchorElement[JC] var filters: Object
23852386
HTMLAnchorElement[JC] def firstChild: Node

api-reports/2_13.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2380,6 +2380,7 @@ HTMLAnchorElement[JC] var contentEditable: String
23802380
HTMLAnchorElement[JC] def dataset: js.Dictionary[String]
23812381
HTMLAnchorElement[JC] var dir: String
23822382
HTMLAnchorElement[JC] def dispatchEvent(evt: Event): Boolean
2383+
HTMLAnchorElement[JC] var download: String
23832384
HTMLAnchorElement[JC] var draggable: Boolean
23842385
HTMLAnchorElement[JC] var filters: Object
23852386
HTMLAnchorElement[JC] def firstChild: Node

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

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ import scala.scalajs.js.annotation._
1717
@JSGlobal
1818
abstract class HTMLAnchorElement extends HTMLElement {
1919

20+
/** A string indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
21+
* The value represent the proposed name of the file. If the name is not a valid filename of the underlying OS,
22+
* browser will adapt it.
23+
*/
24+
var download: String = js.native
25+
2026
/** Is a DOMString that reflects the rel HTML attribute, specifying the relationship of the target object to the link
2127
* object.
2228
*/

0 commit comments

Comments
 (0)