Closed
Bug 922931
Opened 11 years ago
Closed 11 years ago
Broken images should be discoverable if alt is unset (NOT empty string), even in standard-mode
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Core
Layout: Images, Video, and HTML Frames
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: emk, Assigned: emk)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
10.30 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
The HTML spec recommends displaying something to indicate the user.[1] It does not depend on the rendering mode. We don't have to care if the alt text is clipped because the alt text is not present :) [1] http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html#the-img-element
Assignee | ||
Comment 1•11 years ago
|
||
The current workaround: img { -moz-force-broken-image-icon: 1 } img[alt] { -moz-force-broken-image-icon: 0 }
Assignee | ||
Comment 2•11 years ago
|
||
Assignee | ||
Comment 3•11 years ago
|
||
Try runs: https://tbpl.mozilla.org/?tree=Try&rev=65d7457c23d9 https://tbpl.mozilla.org/?tree=Try&rev=3e9d95f84214
Comment 4•11 years ago
|
||
Hmm. So the actual spec requirement for the layout here is at http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#rendering and says: When an img element might be a key part of the content, but neither the image nor any kind of alternative text is available, and the user agent does not expect this to change, the element is expected to be treated as a non-replaced phrasing element whose content is an icon indicating that an image is missing. That's not what this patch does, and might well not be web-compatible (e.g. in cases when the current sized box is smaller than the icon size). Do we need to get the spec changed here?
Flags: needinfo?(VYV03354)
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Boris Zbarsky [:bz] from comment #4) > That's not what this patch does, and might well not be web-compatible (e.g. > in cases when the current sized box is smaller than the icon size). Do we > need to get the spec changed here? I'm for changing the spec.
Flags: needinfo?(VYV03354)
Comment 6•11 years ago
|
||
OK. Do you want to file the spec issue, then?
Assignee | ||
Comment 7•11 years ago
|
||
Filed <https://www.w3.org/Bugs/Public/show_bug.cgi?id=23443>.
Comment 8•11 years ago
|
||
Comment on attachment 813846 [details] [diff] [review] patch >+++ b/dom/imptests/failures/editing/conformancetest/test_runtest.html.json Hmm. Why was the change to this file needed? r=me for the rest.
Attachment #813846 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Boris Zbarsky [:bz] from comment #8) > >+++ b/dom/imptests/failures/editing/conformancetest/test_runtest.html.json > > Hmm. Why was the change to this file needed? Because otherwise the test "passed" unexpectedly. Looks like our |document.execCommand("forwarddelete", ...);| ignores img elements which represent nothing. So it removed the character "b" instead of the broken img without this patch.
Comment 10•11 years ago
|
||
Ah, I see. Thanks!
Assignee | ||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8434bf06134c
Comment 12•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8434bf06134c
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Comment 13•10 years ago
|
||
Note - this suspected to be the root cause of bug 985173.
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•