The tag page index seems incorrect in one place #132
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HPR/hpr_generator#132
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The multi-column index on this page lists initial letters of blocks of tags.
Clicking on the letter 'k' does not move to the corresponding 'k' tags. Instead, it moves to the middle of the 'c' block.
I have seen this before; it has something to do with Unicode characters being used as anchors. I can investigate unless someone else wants to.
As I have been working on #152 to make all tags into links to the tag page I have noticed a few things:
Suggestions:
According to the HTML spec, the ID attribute should not contain any ASCII white-space characters
I agree, when generating the ID the tags white-space should become an underscore to meet the spec.
Other than no ASCII white-space characters, an ID attribute can be any other Unicode character. The Mozilla documentation does say if you want the ID to be used as a CSS selector, then it must be a valid CSS identifier.
From what I read, a Unicode character is a valid as part of a CSS identifier, but you can also use escape sequences.
I'm not sure what is going on yet, but it seems like any tags that start with K are being dropped, and that instead of the actual tags being included in the html, it is the name of variables used in the code: count and urls.
I am looking into the issue.
I have determined that the tag with the value of 'keys' is causing the issue. keys is a reserved word in the context of hashes. I haven't figured out how to use the value keys as a key. The following is the context in which it causes an issue:
Instead of interpreting ${tag} as the string "keys" it interprets it as the command/method keys (which returns a list of keys)
PR205 fixes the issues and is merged into main.