Fixed Picture "Alt text" doesn't show the new value when hover on picture

Fethi.dz

Well-known member
Affected version
XF2.1 Beta 2
Hello,

The new Alt text function is great but changing the value of the text doesn't show when hover on the picture.
 
alt != title

<img src=“image.jpg” alt=“image description” title=“image tooltip”>


The alt and title attributes of an image are commonly referred to as alt tag or alt text and title tag – even though they’re not technically tags. The alt text describes what’s on the image and the function of the image on the page. So if you are using an image as a button to buy product X, the alt text should say: “button to buy product X.”

 
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in a future XF release (2.1.0 Beta 3).

Change log:
Ensure alt text is applied on attachment tags as well as image tags.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
In the above post I made the alt text Roger, but is showing as roger.jpg, so it's half OK I suppose!

Code:
<img src="https://xenforo.com/community/attachments/roger-jpg.189365/" data-url="" class="bbImage" data-zoom-target="1" alt="roger.jpg" style="" />
 
The name of the IMG file itself is "roger.jpg" so you will not see the difference if you type Roger on the ALT box even though the 1st letter should be capital when you hover on it.
 
It works now when saving the edited post that contain a picture but when you go back to edit it again the ALT text goes to the original one. I can't see on edit the custom text that I type it.
 
Top Bottom