[img alt=Test height=100 width=100]http://avatars.simplemachinesweb.com/smf/avatar_23_1337883444.png[/img]
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Favatars.simplemachinesweb.com%2Fsmf%2Favatar_23_1337883444.png&hash=ba7f46a5fe23a4f1554495142e927e70e874f24c)
<img src="http://avatars.simplemachinesweb.com/smf/avatar_23_1337883444.png" alt="Test height=100" width="100" class="bbc_img resized" style="cursor: pointer;">
What would be expected is:
<img src="http://avatars.simplemachinesweb.com/smf/avatar_23_1337883444.png" alt="Test" height="100" width="100" class="bbc_img resized" style="cursor: pointer;">
I was under the impression that 'alt' text had to be enclosed within quotes to start with...?
[img alt="Test"...]
Nope, but thanks for reminding me. That's another part of the bug.
[img alt="Test" height=100 width=100]http://avatars.simplemachinesweb.com/smf/avatar_23_1337883444.png[/img]
<img src="http://avatars.simplemachinesweb.com/smf/avatar_23_1337883444.png" alt=""Test" height=100" width="100" class="bbc_img resized" style="cursor: pointer;">
<img src="http://avatars.simplemachinesweb.com/smf/avatar_23_1337883444.png" alt="Test" height="100" width="100" class="bbc_img resized" style="cursor: pointer;">
/me follows
Tracked on GitHub as issue 3027: https://github.com/SimpleMachines/SMF2.1/issues/3027
Can this be included into 2.0.11 as well please? :)
maybe.... however, it's such an unused feature that it has taken years for anyone to report it...
Yeah and I didn't find a fix yet so it would take time for them to fix it. If/when I find the fix, it will be easier to include it in the next release.
seem strange to anyone?
array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'title' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => '<img src="$1" alt="{alt}" title="{title}"{width}{height} class="bbc_img resized">',
and in the resulting page source you see it in a different order?
<img class="bbc_img resized" width="100" title="" alt="Test height=100" src="http://avatars.simplemachinesweb.com/smf/avatar_23_1337883444.png" style="cursor: pointer;">
what is changing the order? alt should be before title then width and height with the class last.
Uh, not sure how you're getting that output but I don't see it.
Me neither...
Another bug of chrome-based browsers?
that was in firefox, so not a chrome bug.
also antes that is for bbc not for an avatar. so different things using different code.
I was using Chrome in that screenshot, too :)
Quote from: Illori on September 21, 2015, 05:09:01 AM
that was in firefox, so not a chrome bug.
also antes that is for bbc not for an avatar. so different things using different code.
the screenshot Ninja posted your avatar with chrome,
the screenshot I posted your avatar with firefox.
the issue i am reporting is with an image posted in a TOPIC, it has NOTHING at all to do with any other image that shows up anywhere else.
this bug is reported on the img bbc tag.
Over the discussion about the BBC parsing which might cause a huge memory consumption, I seem to remember someone (Spuds?) finding out that the current implementation doesn't return all possible permutations of the arguments. Maybe this is related?
Could be, it's just way too old and would need to be somehow made "up-to-date" entirely, lol.
Issue closed/resolved. If you are having such issues please open new topic while using latest build.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Favatars.simplemachinesweb.com%2Fsmf%2Favatar_23_1337883444.png&hash=ba7f46a5fe23a4f1554495142e927e70e874f24c)
What version is it updated in?
the only version that is on github, SMF 2.1
Do you have any tests to make sure it is still working?
that is why it was posted here that it is fixed so that people are aware and can test and report back on github if there are any issues.
I mean unit tests.