Not at Mozilla but:
Given these references, it is moot whether mozilla.org
, as asked below, documents the same.
Specifically, where at mozilla.org
are constructors like new Image()
and new Option()
documented in a contemporary context?
Archaic documentation,
describes the existence of these constructors implicating them as intrinsic JavaScript language components, which is incorrect.
javascript: alert([new Image(), '
', new Option()])
clearly indicates their manifest existence by displaying
[object HTMLImageElement],
,[object HTMLOptionElement]
Rhetorically, what about:
javascript:alert([new Anchor(), new Preserve(), new Form(),,, ])
What other primitive elemental DOM constructors are there? Or, are there no more?
Is it anathema to, and inconsistent with the DOM paradigm used by Mozilla, to incorporate the programming definitions of new Image()
and new Option()
etc., explaining their absence? Yet, these constructors are clearly not intrinsic to the language specification of JavaScript and certainly not HTML. So, where exactly is there a correct current paradigm (originating from mozilla.org
) that describes them fully, including argument types and orders?
references:
An aside: (please do not be distracted by this - locating the relevant documents as specified in the article's title is the only consideration)
This answer prompted the following examination. It is only an observation.
javascript:
alert([ Option, Image,
JSON, Math, Error,
Array, Boolean, Date, Function,
Number, Object, RegExp, String ].join("
"));
alert( Image.toSource() );
produces in FireFox:
[object Option]
[object Image]
[object JSON]
[object Math]
function Error() {
[native code] }
function Array() {
[native code] }
function Boolean() {
[native code] }
function Date() {
[native code] }
function Function() {
[native code] }
function Number() {
[native code] }
function Object() {
[native code] }
function RegExp() {
[native code] }
function String() {
[native code] }
and
({})
but
Error: ({}) is not a constructor
Source File: javascript:alert(new ({}));
Line: 1
Is Image a constructor or not? The answer to this would (presumably) be found in the documents that answer the question asked in this posting's title. This should emphasize the inconsistencies, anomalies and irregularities of cataloging Image
and Option
etc. in an appropriate document.
See Question&Answers more detail:
os