Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
0 registered members (), 65 guests, and 262 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Bad Frog
Bad Frog
Coast of Maine
Posts: 749
Joined: May 2008
Show All Member Profiles 
Top Posters(30 Days)
isaac 9
Ruben 7
Gizmo 6
GregK 2
Abbott 2
Latest Photos
Previous Thread
Next Thread
Print Thread
UBBT 7.5.8 is not HTML5 even though it claims to be HTML5 #255235
04/03/14 01:55 AM
04/03/14 01:55 AM
Joined: Apr 2004
Posts: 1,183
California
isaac Offline OP
UBB.threads Developer
isaac  Offline OP
UBB.threads Developer
Joined: Apr 2004
Posts: 1,183
California
UBBT 7.5.8 pages should not be declaring themselves as an HTML5 doctype pages when they are actually "XHTML 1.0 Transitional"

UBBT 7.5.7 and prior version were "XHTML 1.0 Transitional", and they validated nearly perfect.

The stock UBBT 7.5.8 doctype tells the browser to process the page as HTML5; yet when processing the page as HTML5 the page's code is filled with all sorts of obsolete and bad values. Such as: tables with cellpadding/cellspacing, nowrap, width, align, valign=, and taget=... to name only a few invalid (obsolete) HTML5 tags.

This is a bug in UBB 7.5.8 that affects every page for every site that has upgraded and is using that stock templates/default/header.tpl file. The doctype and head tags within, should be reverted back their 7.5.7 variation until UBBT is truly HTML5.

in UBBT 7.5.8, replace:
Code
{* Script Version 7.5.8 *}
<!DOCTYPE html>
<html  lang="{$lang.XML_LANG}" dir="{$lang.READ_DIRECTION}" prefix="og: http://ogp.me/ns#">
<head>{$refresh}
	<meta charset="{$lang.CHARSET}" />
	<title>{if $inputTitle}{$inputTitle|strip_tags} | {/if}{if $powered}{$powered} UBB.threads&trade;{else}{$config.COMMUNITY_TITLE}{/if}</title>
	{$headerinsert}
	<meta name="generator" content="UBB.threads {$version}" />


with UBBT 7.5.7 header:
Code
{* Script Version 7.5.7 *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang.XML_LANG}" lang="{$lang.XML_LANG}" dir="{$lang.READ_DIRECTION}">
<head>
	<title>{if $inputTitle}{$inputTitle|strip_tags} - {/if}{if $powered}{$powered} UBB.threads&trade;{else}{$config.COMMUNITY_TITLE}{/if}</title>
	<meta name="generator" content="UBB.threads {$version}" />
	{$headerinsert}
	{$refresh}
	<meta http-equiv="Content-Type" content="text/html; charset={$lang.CHARSET}" />


One caveat is that prior to HTML5, your script tag types should be declared. This means that rather than using the HTML5 format of <script src="blahblahblah"></script>, they should be written as <script src="blahblahblah" type="text/javascript"></script>. UBBT 7.5.8 removed all the script type declarations. But...

Many modern browsers are able to look at a page and render a correct doctype no mater how it's declared (same, regarding script type), though, not everyone is running the latest operating system and/or are unable to upgrade to a more up-to-date browser -- I'm looking at you, "Windows XP" and your IE8 browser!


isaac @ id242.com // forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 ChangelogIsaac DeCoursey
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: UBBT 7.5.8 is not HTML5 even though it claims to be HTML5 [Re: isaac] #255242
04/03/14 10:05 AM
04/03/14 10:05 AM
Joined: Jun 2006
Posts: 16,948
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,948
Portland, OR; USA
It's the new "target"; personally, every site I have is xHTML, and the html5 declaration trashes UBBDev's design (plus several other client sites).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!James Corthell

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Facebook sharing
by GregK. 08/17/18 12:32 PM
Google Analytics code
by Conrad. 08/15/18 07:36 AM
Possible bug in counting posts
by Baldeagle. 08/11/18 02:28 PM
My Forum Stopped Working
by packlite. 07/30/18 03:35 PM
User uploaded attachment images not displaying
by Digitalgas. 07/30/18 01:59 AM
Forum Statistics
Forums36
Topics35,132
Posts191,397
Members12,097
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180524)