Browser Rendering Issues [was: Double quotes in dataset titles not escaped in collection icon alt attributes]
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
Hello everyone,
I've encountered a UI issue with a Dataverse 6.3 instance. When a dataset title contains double quotes ("), these are not being converted to HTML entities in the "alt" attribute of the "img" element that serves as the icon for each collection.
For example:
<img src="https://dataverse.myhost.org/api/datasets/157279/logo" alt="Lorem ipsum "dolor sit" amet">
This creates invalid HTML syntax, as the unescaped quotes within the alt attribute break the attribute value parsing. The quotes should be encoded as " entities to ensure proper HTML compliance.
Thanks,
Alfredo
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the collection icon rendering in a Dataverse 6.3 instance with a dataset title containing double quotes. Inspect where the collection icon img element and its alt attribute are generated, then verify that quoted titles produce valid HTML with encoded quotes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100