SourceElement

SourceElement

package js-html

extends ElementDOMElementNodeEventTarget

Available on js

The HTMLSourceElement interface provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating source elements.

Documentation HTMLSourceElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

media:String

Is a DOMString reflecting the media HTML attribute, containing the intended type of the media resource.

sizes:String

Is a DOMString representing image sizes between breakpoints

src:String

Is a DOMString reflecting the src HTML attribute, containing the URL for the media resource. The HTMLSourceElement.src property has a meaning only when the associated source element is nested in a media element that is a video or an audio element. It has no meaning and is ignored when it is nested in a picture element.

srcset:String

Is a DOMString reflecting the srcset HTML attribute, containing a list of candidate images, separated by a comma (',', U+002C COMMA). A candidate image is a URL followed by a 'w' with the width of the images, or an 'x' followed by the pixel density.

type:String

Is a DOMString reflecting the type HTML attribute, containing the type of the media resource.

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/SourceElement.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部