? Pending

User tests: Successful: Unsuccessful:

avatar BaleshSrle
BaleshSrle
22 Mar 2018

Summary of Changes

Made a transition in Joomla's IFRAME element from HTML4 to HTML5 standard

Testing Instructions

Added wrapper modules on index.php and in menus (and/or submenus).
Using "px" or "%" in "height" field (required by HTML5 standard).

Expected result

Working 100 %

Actual result

Works like a charm, as seen @ view-source:https://sflogistika.dobojcaffe.com/v2/ & view-source:https://sflogistika.dobojcaffe.com/v2/index.php/video/srce-za-saobracajni

Documentation Changes Required

Need to modify 6 files to work without any problems or hiccups:

  • modules/mod_wrapper/mod_wrapper.xml

  • modules/mod_wrapper/mod_wrapper.php

  • modules/mod_wrapper/helper.php

  • modules/mod_wrapper/tmpl/default.php

  • components/com_wrapper/views/wrapper/tmpl/default.xml

  • components/com_wrapper/views/wrapper/tmpl/default.php

avatar BaleshSrle BaleshSrle - open - 22 Mar 2018
avatar BaleshSrle BaleshSrle - change - 22 Mar 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Mar 2018
Category Front End com_wrapper Modules
avatar ReLater
ReLater - comment - 24 Mar 2018

@BaleshSrle
I think that this pr is a hard backwards compatibility break and cannot be merged like it is at the moment.

What do you think about changing it like this:

  • Adding an additional switch
    HTML4 (which should be the default setting and uses the old parameters)
    or
    HTML5 (which uses the new parameters)

  • Displaying / Hiding related parameters with showon attributes in XML files.

avatar C-Lodder
C-Lodder - comment - 24 Mar 2018

Isn't this a B/C break with the changing of param names/values?

avatar BaleshSrle
BaleshSrle - comment - 24 Mar 2018

Then why did you inserted HTML5 Shiv in Joomla? It's job is to make the websites with html5 supportable and presentable to older web browsers (for example Internet Explorer 8 or even Internet Explorer 6). There is no need for HTML4 code, because the htm5shiv is bridging the gap between the older web browsers (pre-HTML5) an new HTML5 code structure.

For more info, you can see (and even search) on some web links:
HTML iframe tag - w3schools.com
Presentational elements and attributes - WHATWG Wiki

For those who want to see does their Joomla web-site supports HTML5 coding standard, you can find tools @ W3C Markup Validator Service & Html Validator for Firefox and Chrome.

P.S.:Inform me if you want my contribution to Joomla 4 iframe element, if you want to modernise it. If not, then I promise to you all that I will modify Joomla's iframe element after every Joomla update.

avatar mbabker
mbabker - comment - 24 Mar 2018

Isn't this a B/C break with the changing of param names/values?

Yes.

As implemented, this PR can't be accepted because it will cause existing sites using the wrapper component/module to stop using their existing configurations and switch to the default HTML5 configurations after an update. To be accepted in 3.x what @ReLater suggested needs to be applied.

avatar ReLater
ReLater - comment - 24 Mar 2018

If not, then I promise to you all that I will modify Joomla's iframe element after every Joomla update.

Why not just changing your provided code once like suggested and making all users happy including yourself? ;-)

Please leave a comment here if you don't want to change it. Maybe(!) I'll find the time to take it over.

avatar C-Lodder
C-Lodder - comment - 24 Mar 2018

@BaleshSrle I'm not disagreeing with you. I'm simply saying it's a B/C break as you're changing parameter names which will effect those with template overrides for those views.

avatar BaleshSrle
BaleshSrle - comment - 24 Mar 2018

@C-Lodder & @mbabker I have 17 iframe (or wrapper) elements on my 2 web-sites all together, and it took me all together less than 6 hours (maybe even less) to change all settings in every wrapper element from start to finish. Maybe you all are lazy and don't want to work on your web sites (that means to improve and maintain them).

I don't know about you, but I like to work on my web-sites.

About the template override issue, let's force the template designers to start creating templates by using HTML5 coding standard.

BTW, before I created this PR, I sent an email to admin@joomla.org informing them about this and I sent them compressed modified xml and php files, and Luca Marzo sent me an e-mail and he informed me that I need to create a PR on Joomla's GitHub.

@ReLater I started this, and I will finish this. If you wish, you can join & assist me (because I don't understand PHP, but I understand HTML). But have in mind that this needs to be lite, because some people, who are using self-hosting servers, don't have enough storage space on those servers.

avatar mbabker
mbabker - comment - 24 Mar 2018

It's not about being lazy, it's not about how much effort it might take a site owner to apply the changes. We have a backward compatibility promise, ONLY in a major version (i.e. 4.0) can breaking changes be accepted (preferably with a migration path if applicable). For this change proposal to land in a 3.x release, it must be made backward compatible. That means updating this PR in a way where existing HTML4 based configurations will keep working and users who elect to update their sites are free to do so with the new parameters.

Otherwise, this PR can only be applied to 4.0 if there is going to be no effort in making it backward compatible.

avatar BaleshSrle
BaleshSrle - comment - 24 Mar 2018

@mbabker I think that you are B/C this to Joomla 2.5.28. :-D

But if you like, I can create a PR for 4.0 , but after taking a glimpse at that code, I can say it is about 50% (or even more) similar to 3.x

avatar BaleshSrle BaleshSrle - change - 24 Mar 2018
Labels Added: ?
avatar C-Lodder
C-Lodder - comment - 24 Mar 2018

@BaleshSrle Nothing to do with being lazy at all. It's simply obiding by semver rules.

Your changes will be fine against the 4.0-dev branch

avatar ReLater
ReLater - comment - 25 Mar 2018

@BaleshSrle
See #19985 please.

avatar Quy Quy - change - 25 Mar 2018
The description was changed
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-03-25 17:27:10
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 25 Mar 2018
Status Closed Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Mar 2018
Status Pending Closed
avatar joomla-cms-bot joomla-cms-bot - change - 25 Mar 2018
The description was changed
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - edited - 25 Mar 2018
avatar joomla-cms-bot joomla-cms-bot - edited - 25 Mar 2018
avatar joomla-cms-bot joomla-cms-bot - close - 25 Mar 2018
avatar Quy
Quy - comment - 25 Mar 2018

Closing in favor for #19985.


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 25 Mar 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/19965

avatar brianteeman brianteeman - change - 25 Mar 2018
The description was changed
Status Closed New
Closed_Date 2018-03-25 17:27:10
Closed_By joomla-cms-bot
avatar brianteeman brianteeman - change - 25 Mar 2018
Status New Pending
avatar brianteeman brianteeman - reopen - 25 Mar 2018
avatar brianteeman
brianteeman - comment - 25 Mar 2018

reopened

avatar ReLater
ReLater - comment - 25 Mar 2018

@BaleshSrle

A strange find with my pr #19985 but also relevant for yours if you plan to commit it for Joomla 4

Most browsers don't support overflow CSS rule for IFRAME tags. One have to use scrolling="no|yes|auto" even if it has been removed in HTML5.

avatar ReLater
ReLater - comment - 25 Mar 2018

See also pr #19991 (mod_wrapper, Joomla 3)

avatar BaleshSrle
BaleshSrle - comment - 28 Mar 2018

@ReLater You didn't read the link about overflow, because there is a table which displays the minimum version of web browser that supports CSS overflow property.

By the way, there is an HTML Shiv in Joomla.

avatar BaleshSrle BaleshSrle - change - 28 Mar 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-03-28 14:53:31
Closed_By BaleshSrle
avatar BaleshSrle BaleshSrle - close - 28 Mar 2018
avatar BaleshSrle BaleshSrle - change - 28 Mar 2018
Status Closed New
Closed_Date 2018-03-28 14:53:31
Closed_By BaleshSrle
avatar BaleshSrle BaleshSrle - change - 28 Mar 2018
Status New Pending
avatar BaleshSrle BaleshSrle - reopen - 28 Mar 2018
avatar BaleshSrle BaleshSrle - change - 28 Mar 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-03-28 15:31:29
Closed_By BaleshSrle
avatar BaleshSrle BaleshSrle - close - 28 Mar 2018
avatar ReLater
ReLater - comment - 28 Mar 2018

You didn't read the link about overflow, because there is a table which displays the minimum version of web browser that supports CSS overflow property.

You still don't understand. overflow: hidden; doesn't hide the scroll bars of tag IFRAME (!!!!!!) in supported browsers. Test it (!!!!) WITH JOOMLA 3 and or JOOMLA 4!

If a user chooses setting Scroll Bars = NO we don't want to see scroll bars in the Joomla frontend!

That's the only criterion for your and my pr (!!!!)

avatar BaleshSrle
BaleshSrle - comment - 22 Apr 2018

It does hide it... If it doesn't, then change the dimensions of iframe element (I mean on height and/or width of iframe) and leave overflow: hidden.

avatar ReLater
ReLater - comment - 22 Apr 2018

Still the same answer: In Joomla 3 we have to guarantee that a user controls the behavior in backend like before. I've tested that with current Joomla 3 and HTML5 doesn't work like expected without adding HTML4 attribute
scrolling="yes"
scrolling="no"
in addition.

That's a known browsers issue, BTW.

I've closed my prs a month ago after some inverstigations because I don't like this attribute mix. But you can find their some "hints" to keep a Wrapper pr B\C for Joomla 3.

So, please feel free to provide a testable HTML5 version for Wrapper with the same common settings in backend for Joomla 3 or Joomla 4 or both. Makes no sense if we discuss theoretical things here ;-)

avatar BaleshSrle
BaleshSrle - comment - 2 May 2018

Look, I don't know what is the issue, but I suggest you open

link removed

in Mozilla-base (ie Firefox, Pale Moon or Sea Monkey) or Chromium-base (ie Google Chrome, Vivaldi or Opera) web browser and find the issue in my web-sites source code, because I can't find any.

avatar BaleshSrle BaleshSrle - change - 2 May 2018
The description was changed
avatar BaleshSrle BaleshSrle - edited - 2 May 2018
avatar brianteeman
brianteeman - comment - 3 May 2018

Due to the nature of the link you posted I have had to remove it. Please dont post a similar link again.

Add a Comment

Login with GitHub to post a comment