IQSS / IQSS/dataverse

Browser Rendering Issues [was: Double quotes in dataset titles not escaped in collection icon alt attributes]

Open
#11,526 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.