Skip to content

Commit

Permalink
html4 only for IE<9
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Oct 25, 2017
1 parent e0e8c95 commit 177ade0
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/checkboxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

/**
* The format of the input tag to be filled in using sprintf.
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/color/advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));
JHtml::_('script', 'jui/jquery.minicolors.min.js', array('version' => 'auto', 'relative' => true));
JHtml::_('stylesheet', 'jui/jquery.minicolors.css', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/color-field-adv-init.min.js', array('version' => 'auto', 'relative' => true));
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/color/simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

// Include jQuery
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));
JHtml::_('script', 'jui/jquery.simplecolors.min.js', array('version' => 'auto', 'relative' => true));
JHtml::_('stylesheet', 'jui/jquery.simplecolors.css', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/color-field-init.min.js', array('version' => 'auto', 'relative' => true));
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/combo.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));
JHtml::_('behavior.combobox');

$attr = !empty($class) ? ' class="combobox ' . $class . '"' : ' class="combobox"';
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

?>
<input type="email" name="<?php
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

$maxSize = JHtml::_('number.bytes', JUtility::getMaxUploadSize());
?>
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/number.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

?>
<input type="number" name="<?php
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

$attributes = array(
strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '',
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/radio.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

/**
* The format of the input tag to be filled in using sprintf.
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/range.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

// Initialize some field attributes.
$attributes = array(
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/tel.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', false, true);
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

$autocomplete = !$autocomplete ? ' autocomplete="off"' : ' autocomplete="' . $autocomplete . '"';
$autocomplete = $autocomplete == ' autocomplete="on"' ? '' : $autocomplete;
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

$list = '';

Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

// Initialize some field attributes.
$autocomplete = !$autocomplete ? 'autocomplete="off"' : 'autocomplete="' . $autocomplete . '"';
Expand Down
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/url.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

$autocomplete = !$autocomplete ? ' autocomplete="off"' : ' autocomplete="' . $autocomplete . '"';
$autocomplete = $autocomplete === ' autocomplete="on"' ? '' : $autocomplete;
Expand Down
2 changes: 1 addition & 1 deletion libraries/joomla/form/fields/checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function getInput()

// Including fallback code for HTML5 non supported browsers.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

return '<input type="checkbox" name="' . $this->name . '" id="' . $this->id . '" value="'
. htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '"' . $class . $checked . $disabled . $onclick . $onchange
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_search/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

// Including fallback code for the placeholder attribute in the search field.
JHtml::_('jquery.framework');
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9 '));

if ($width)
{
Expand Down

0 comments on commit 177ade0

Please sign in to comment.