New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphic Image: Since PF 12 ismap
attribute is rendered and causing invalid HTML
#9373
Comments
Bukama
added
‼️ needs-triage
Issue needs triaging
🐞 defect
Bug...Something isn't working
labels
Nov 3, 2022
Duplicate of: #9369 |
melloware
added
🚫 duplicate
Duplicate of a similar issue
and removed
🐞 defect
Bug...Something isn't working
‼️ needs-triage
Issue needs triaging
labels
Nov 3, 2022
Oh sorry, I had the task to create an issue laying on my desk for about two weeks and didn't double checked if there was an issue created in the meantime :( |
No problem! |
I better test the TRUE scenario I fixed the false scenario. |
melloware
added
🐞 defect
Bug...Something isn't working
and removed
🚫 duplicate
Duplicate of a similar issue
labels
Nov 3, 2022
melloware
added a commit
to melloware/primefaces
that referenced
this issue
Nov 3, 2022
This PR makes it render correctly with false and true. <img id="j_id_90" src="/showcase/javax.faces.resource/images/nature/nature4.jpg.xhtml?ln=demo">
<img id="j_id_91" src="/showcase/javax.faces.resource/images/nature/nature4.jpg.xhtml?ln=demo" ismap="ismap">
|
melloware
added a commit
that referenced
this issue
Nov 3, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Since Primefaces 12 the Graphic Image renderes a
ismap
attribute with the valuestrue
orfalse
, resulting in invalid HTML:While the
ismap
attribute is allowed on the image-tag and it is a boolean type, the correct syntax is to only addismap
when the image is a server side map and don't use it, when the image is not map, see this example from W3C:If I've read the commit history right, the change was introduced with commit f08ba1e3d57cc82b1a07f3a4ebb2098eec532e15 in PR #8772 to fix #7943.
Reproducer
Check showcase of Graphic Image
Expected behavior
ismap
attribute is only rendered when trueismap
attribute is rendered as definied by the W3C, meaning without a valuePrimeFaces edition
Community
PrimeFaces version
12.0.0
Theme
No response
JSF implementation
All
JSF version
2.2
Java version
8
Browser(s)
all
The text was updated successfully, but these errors were encountered: