ecmarkup
ecmarkup copied to clipboard
"Foo constructor" should autolink to the Foo constructor instead of just linking to the dfn of constructor
@marjakh brought this up: "String constructor" linking just the word "constructor" to the definition of what a constructor is isn't useful. Presumably, most of the time the reader would want to be able to click through to see what the String constructor does.
I think this is just a matter of <dfn>
'ing "String constructor" somewhere.
And other "Foo constructor"s too, like AggregateError BigInt Boolean Number Symbol %TypedArray% etc etc
The dfn might work, but it might be nice if “X constructor” implicitly linked to X’s constructor.