Linking to enum values produces non-functional links #937

Open
BlackWolf opened this Issue Mar 3, 2015 · 2 comments

Projects

None yet

3 participants

@BlackWolf

I noticed today that, when I tried to link to an enum's value, this produced a link that was not working. Looking at the output HTML, it seems that linking to an enum value is actually impossible, as only the enum title gets the id attribute. I suppose the way to go here is that a link to an enum value will result in a link to the enum itself.

Example:

/**
 * Link to {@link SomeEnum.AVALUE}
 */
var method = function() {
};

/**
 * An enum
 * @enum
 */
var SomeEnum = {
  AVALUE       : "avalue",
  ANOTHERVALUE : "anothervalue"
};

This will result in a link to global.html#SomeEnum#.AVALUE, which does not work. I suppose it should rather produce a link to global.html#SomeEnum.

@hegemonic
Member

This is very closely related to, and possibly a duplicate of, #724. I'll keep this open for now, though, since it may be hitting a slightly different code path than the one I was chasing in #724.

@hegemonic hegemonic added the bugfix label Mar 4, 2015
@hegemonic hegemonic added this to the 3.3.x milestone Mar 4, 2015
@GerHobbelt
Contributor

And possibly related to #970 as well?

@hegemonic hegemonic modified the milestone: 3.5.0, 3.3.x Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment