Where are constructors such as, `new Image()` and `new Option()`, documented?

前端 未结 4 513
-上瘾入骨i
-上瘾入骨i 2020-11-27 16:26

Not at Mozilla but:

  • for image:
    Thanks to Rickard for identifying
    http://www.w3.org/html/wg/drafts/html/CR/embedded-content-0.html#dom-imag
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 16:59

    HTML 5

    DOM Option class

    http://dev.w3.org/html5/spec-preview/the-option-element.html

    Several constructors are provided for creating HTMLOptionElement objects (in addition to the factory methods from DOM Core such as createElement()): Option(), Option(text), Option(text, value), Option(text, value, defaultSelected), and Option(text, value, defaultSelected, selected).

提交回复
热议问题