Interface HTMLSourceElement

All Superinterfaces:
Element, EventTarget, HTMLElement, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode

public interface HTMLSourceElement extends HTMLElement
Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements.
  • Method Details

    • getMedia

      String getMedia()
      Gets or sets the intended media type of the media source.
      Returns:
      a String object.
    • setMedia

      void setMedia(String media)

      setMedia.

      Parameters:
      media - a String object.
    • getSizes

      String getSizes()

      getSizes.

      Returns:
      a String object.
    • setSizes

      void setSizes(String sizes)

      setSizes.

      Parameters:
      sizes - a String object.
    • getSrc

      String getSrc()
      The address or URL of the a media resource that is to be considered.
      Returns:
      a String object.
    • setSrc

      void setSrc(String src)

      setSrc.

      Parameters:
      src - a String object.
    • getSrcset

      String getSrcset()

      getSrcset.

      Returns:
      a String object.
    • setSrcset

      void setSrcset(String srcset)

      setSrcset.

      Parameters:
      srcset - a String object.
    • getType

      String getType()
      Gets or sets the MIME type of a media resource.
      Returns:
      a String object.
    • setType

      void setType(String type)

      setType.

      Parameters:
      type - a String object.