Keyword

frameborder=0 causes html5 validation failure

  • xentrix
  • xentrix's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #55974 by xentrix
Hello and thanks for the #1 plugin I install to Joomla!

I realised that the w3c validator (validator.w3.org/) was returning an error for my html5 page, because of the
frameborder="0"
being used in the iframe attributes.
I changed it to
style="border: none;"
and it validates, giving the same visual result.
I don't know if you have kept the frameborder for backwards compatibility but I think that the style attribute is global enough.
Those who want to make the correction now, can make a global replace of frameborder=/"0/" to style=/"border: none;/" in /plugins/content/jw_allvideos/jw_allvideos/includes/sources.php

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #55983 by Lefteris
Replied by Lefteris on topic frameborder=0 causes html5 validation failure
Hi. You are right but i guess there is some reason that the provider ( Youtube for example ) is using this code. If you try to get the embed code for a video directly through Youtube you will notice that they use the frameborder. So this might be required to support some older browsers.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • xentrix
  • xentrix's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #55992 by xentrix
Replied by xentrix on topic frameborder=0 causes html5 validation failure
Thanks for your answer Lefteri!
I guess this means that you are not going to change the plugin.
I understand the reason but it would be great to have an html5 compliant plugin.
Also, if there is any browser not supporting style="border: none;", I am sure it will run on a computer unable to play any video...
Anyway, your call.

Thanks again for taking the time to answer.

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #55998 by Lefteris
Replied by Lefteris on topic frameborder=0 causes html5 validation failure
We always want to keep in line with the code the provider gives. However we will consider your suggestion. Thank you for the great feedback.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum