ecmarkup icon indicating copy to clipboard operation
ecmarkup copied to clipboard

"Foo constructor" should autolink to the Foo constructor instead of just linking to the dfn of constructor

Open syg opened this issue 3 years ago • 3 comments

@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.

syg avatar Jan 15 '21 00:01 syg

I think this is just a matter of <dfn>'ing "String constructor" somewhere.

bakkot avatar Jan 15 '21 01:01 bakkot

And other "Foo constructor"s too, like AggregateError BigInt Boolean Number Symbol %TypedArray% etc etc

marjakh avatar Jan 15 '21 09:01 marjakh

The dfn might work, but it might be nice if “X constructor” implicitly linked to X’s constructor.

ljharb avatar Jan 15 '21 15:01 ljharb