? ? Pending

User tests: Successful: Unsuccessful:

avatar BastianWie
BastianWie
25 Mar 2017

Pull Request for Issue #14893 .

Summary of Changes

Added the correct space between the attributes inside the banner elements

Testing Instructions

Overwrite the default.php in a joomla 3.6.5 with the fixed one. Try the steps from issue #14893 and check the HTML source. The spaces should be now correct. As an additional test you can run an HTML syntax check against the section and it now validated correctly.

Expected result

img src="banners/banner_example_468x60.gif" alt="486x60" width="486" height="60"/

Actual result

img src="banners/banner_example_468x60.gif" alt="486x60"width ="486"height ="60"/

Documentation Changes Required

See source code

avatar BastianWie BastianWie - open - 25 Mar 2017
avatar BastianWie BastianWie - change - 25 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Mar 2017
Category Modules Front End
avatar BastianWie BastianWie - change - 25 Mar 2017
Labels Added: ?
avatar BastianWie BastianWie - change - 25 Mar 2017
Title
Update default.php
Update default.php to fix missing space between img attributes
avatar BastianWie BastianWie - edited - 25 Mar 2017
avatar brianteeman
brianteeman - comment - 25 Mar 2017

I ran an html checker BEFORE the pr and didnt reveal any errors

avatar brianteeman
brianteeman - comment - 25 Mar 2017

Are you getting your error on a completely clean install of joomla without any extensions

avatar bertmert
bertmert - comment - 25 Mar 2017

I don't know if it's really a markup error but would also prefer to remove these spaces (what the PR does):

25-03-_2017_18-33-57

More consistent and some common regular expressions in 3rd extensions could fail

avatar bertmert bertmert - test_item - 25 Mar 2017 - Tested successfully
avatar bertmert
bertmert - comment - 25 Mar 2017

I have tested this item successfully on 513b9fc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14894.

avatar brianteeman
brianteeman - comment - 25 Mar 2017

@bertmert ho can yours be a successful test as your screenshot does not show the original reported issue which is that there is no space between the alt, width and height tags

avatar BastianWie
BastianWie - comment - 26 Mar 2017

The screenshot from bertmert shows the issue and the space between the width and height elements

avatar infograf768
infograf768 - comment - 27 Mar 2017

Indeed, when looking at source, we have extra spaces

<div class="banneritem">
																																														<img
						src="http://localhost:8888/trunkgitnew/images/banners/white.png"
						alt="my alt text"
						width ="300"						height ="150"					/>

The xtra spaces don't show when using Firebug.

After patch we do get the correct

<div class="banneritem">
																																														<img
						src="http://localhost:8888/trunkgitnew/images/banners/white.png"
						alt="my alt text"
						 width="300"						 height="150"					/>

Not a big deal. But the PR incorrectly (code style) takes off the space before the ?>
for all instances of

-								src="<?php echo $baseurl . $imageurl; ?>"
-								alt="<?php echo $alt; ?>"
TO
+								src="<?php echo $baseurl . $imageurl;?>"
+								alt="<?php echo $alt;?>"

As these are variables the space does not have to be taken off.

avatar BastianWie
BastianWie - comment - 28 Mar 2017

yes its not a security issue or caused any known "issues". Its only to follow standards and get a cleaner code basis.

avatar BastianWie BastianWie - test_item - 28 Mar 2017 - Tested successfully
avatar BastianWie
BastianWie - comment - 28 Mar 2017

I have tested this item successfully on 513b9fc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14894.

avatar BastianWie
BastianWie - comment - 28 Mar 2017

@infograf768 There is no change done for the src & alt section by me in my PR. You can check the change history. I fixed only the issue reported here with weigh and height.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14894.

avatar infograf768
infograf768 - comment - 29 Mar 2017

There is a change: I posted it above. You took off some spaces. It is only a code style issue but it is real.
Just copy https://github.com/joomla/joomla-cms/pull/14894.diff in a text editor and you will see.

avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Mar 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Mar 2017

RTC after two successful testes.

avatar rdeutz
rdeutz - comment - 30 Mar 2017

@infograf768 anything what needs fixing before merge?

avatar rdeutz rdeutz - change - 31 Mar 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-03-31 12:57:59
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 31 Mar 2017
avatar rdeutz rdeutz - merge - 31 Mar 2017

Add a Comment

Login with GitHub to post a comment