Zero trimmed from "font-size" attribute
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.4k
- Forks
- 361
- Avg merge
- 3d 41m
- Merged PRs (30d)
- 2
Description
When I send HTML containing <span style="font-size:0.5em"> some text </span> to the HTML Purifier, it trims the 0 and returns <span style="font-size:.5em">. The html without the zero then does not work well with our other technologies. Is this trimming a wanted behaviour? Would it be possible to skip trimming of the zeros?
Contributor guide
No contributing guide indexed for this repository
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 issue with the reported input and trace how HTML Purifier processes the font-size style value. Done means determining whether the leading zero should be preserved and, if so, confirming the output retains 0.5em without breaking purification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100