Make WordPress Core

Changeset 60965


Ignore:
Timestamp:
10/17/2025 09:03:52 PM (2 months ago)
Author:
joedolson
Message:

Twenty Sixteen: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Sixteen. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code. Change relevant enqueues to registrations.

Props desrosj, sabernhardt, karmatosed, neychok, metodiew, mukesh27, joedolson.
See #58836.

Location:
trunk/src/wp-content/themes/twentysixteen
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentysixteen/css/ie.css

    r40851 r60965  
    1 /*
    2 Theme Name: Twenty Sixteen
    3 Description: Global Styles for older IE versions (previous to IE10).
    4 */
    5 
    6 .site-header-main:before,
    7 .site-header-main:after,
    8 .site-footer:before,
    9 .site-footer:after {
    10     content: "";
    11     display: table;
    12 }
    13 
    14 .site-header-main:after,
    15 .site-footer:after {
    16     clear: both;
    17 }
    18 
    19 @media screen and (min-width: 56.875em) {
    20     .site-branding,
    21     .site-info {
    22         float: left;
    23     }
    24 
    25     .site-header-menu,
    26     .site-footer .social-navigation {
    27         float: right;
    28     }
    29 
    30     .site-footer .social-navigation {
    31         margin-left: 7px;
    32     }
    33 
    34     .rtl .site-branding,
    35     .rtl .site-info {
    36         float: right;
    37     }
    38 
    39     .rtl .site-header-menu,
    40     .rtl .site-footer .social-navigation {
    41         float: left;
    42     }
    43 
    44     .rtl .site-footer .social-navigation {
    45         margin-right: 7px;
    46         margin-left: 0;
    47     }
    48 }
     1/* This theme does not support Internet Explorer since version 3.7. */
  • trunk/src/wp-content/themes/twentysixteen/css/ie7.css

    r40851 r60965  
    1 /*
    2 Theme Name: Twenty Sixteen
    3 Description: IE7 specific style.
    4 */
    5 
    6 .site-inner {
    7     max-width: 656px;
    8 }
    9 
    10 .post-navigation,
    11 .pagination,
    12 .image-navigation,
    13 .entry-header,
    14 .entry-summary,
    15 .entry-content,
    16 .entry-footer,
    17 .page-header,
    18 .page-content,
    19 .post-thumbnail,
    20 .content-bottom-widgets,
    21 .comments-area {
    22     margin-right: 28px;
    23     margin-left: 28px;
    24     max-width: 100%;
    25 }
    26 
    27 .site-header,
    28 .sidebar,
    29 .site-footer,
    30 .widecolumn {
    31     padding-right: 28px;
    32     padding-left: 28px;
    33 }
    34 
    35 .search-submit {
    36     height: auto;
    37     margin-top: 28px;
    38     padding: 15px 0 8px;
    39     position: relative;
    40     width: auto;
    41 }
    42 
    43 .search-submit .screen-reader-text {
    44     height: auto;
    45     position: relative !important;
    46     width: auto;
    47 }
    48 
    49 .image-navigation .nav-previous,
    50 .image-navigation .nav-next,
    51 .comment-navigation .nav-previous,
    52 .comment-navigation .nav-next {
    53     *display: inline;
    54     zoom: 1;
    55 }
    56 
    57 .image-navigation .nav-previous + .nav-next,
    58 .comment-navigation .nav-previous + .nav-next {
    59     margin-left: 14px;
    60 }
    61 
    62 .pagination .nav-links {
    63     padding: 0;
    64 }
    65 
    66 .pagination .page-numbers {
    67     line-height: 1;
    68     margin: -4px 14px 0;
    69     padding: 18px 0;
    70 }
    71 
    72 .pagination .prev,
    73 .pagination .next {
    74     display: inline-block;
    75     font-size: 16px;
    76     font-weight: 700;
    77     height: auto;
    78     left: 0;
    79     line-height: 1;
    80     margin: 0;
    81     padding: 18px 14px;
    82     position: relative;
    83     right: 0;
    84     text-transform: none;
    85     width: auto;
    86 }
    87 
    88 .dropdown-toggle {
    89     display: none;
    90 }
    91 
    92 .main-navigation ul ul {
    93     display: block;
    94 }
    95 
    96 .social-navigation {
    97     margin-top: 1.75em;
    98 }
    99 
    100 .social-navigation a {
    101     height: auto;
    102     padding: 3px 7px;
    103     width: auto;
    104 }
    105 
    106 .social-navigation .screen-reader-text {
    107     height: auto;
    108     position: relative !important;
    109     width: auto;
    110 }
    111 
    112 .site-header-main {
    113     overflow : hidden;
    114     zoom : 1;
    115 }
    116 
    117 .entry-footer > span {
    118     margin-right: 14px;
    119 }
    120 
    121 .site-info .site-title {
    122     font-size: 13px;
    123     margin-right: 14px;
    124 }
    125 
    126 .gallery-item {
    127     max-width: 30%;
    128 }
    129 
    130 .gallery-columns-1 .gallery-item {
    131     max-width: 100%;
    132 }
    133 
    134 .gallery-columns-2 .gallery-item {
    135     max-width: 46%;
    136 }
    137 
    138 .gallery-columns-4 .gallery-item {
    139     max-width: 22%;
    140 }
    141 
    142 .gallery-columns-5 .gallery-item {
    143     max-width: 17%;
    144 }
    145 
    146 .gallery-columns-6 .gallery-item {
    147     max-width: 13.5%;
    148 }
    149 
    150 .gallery-columns-7 .gallery-item {
    151     max-width: 11%;
    152 }
    153 
    154 .gallery-columns-8 .gallery-item {
    155     max-width: 9.5%;
    156 }
    157 
    158 .gallery-columns-9 .gallery-item {
    159     max-width: 8%;
    160 }
    161 
    162 .rtl .image-navigation .nav-previous + .nav-next,
    163 .rtl .comment-navigation .nav-previous + .nav-next {
    164     margin-right: 14px;
    165     margin-left: 0;
    166 }
    167 
    168 .rtl .entry-footer > span {
    169     margin-right: 14px;
    170     margin-left: 0;
    171 }
    172 
    173 .rtl .site-info .site-title {
    174     margin-right: 0;
    175     margin-left: 14px;
    176 }
     1/* This theme does not support Internet Explorer since version 3.7. */
  • trunk/src/wp-content/themes/twentysixteen/css/ie8.css

    r40851 r60965  
    1 /*
    2 Theme Name: Twenty Sixteen
    3 Description: IE8 specific style.
    4 */
    5 
    6 code {
    7     background-color: transparent;
    8     padding: 0;
    9 }
    10 
    11 .entry-content a,
    12 .entry-summary a,
    13 .taxonomy-description a,
    14 .logged-in-as a,
    15 .comment-content a,
    16 .pingback .comment-body > a,
    17 .textwidget a,
    18 .entry-footer a:hover,
    19 .site-info a:hover {
    20     text-decoration: underline;
    21 }
    22 
    23 .entry-content a:hover,
    24 .entry-content a:focus,
    25 .entry-summary a:hover,
    26 .entry-summary a:focus,
    27 .taxonomy-description a:hover,
    28 .taxonomy-description a:focus,
    29 .logged-in-as a:hover,
    30 .logged-in-as a:focus,
    31 .comment-content a:hover,
    32 .comment-content a:focus,
    33 .pingback .comment-body > a:hover,
    34 .pingback .comment-body > a:focus,
    35 .textwidget a:hover,
    36 .textwidget a:focus,
    37 .entry-content .wp-audio-shortcode a,
    38 .entry-content .wp-playlist a,
    39 .page-links a {
    40     text-decoration: none;
    41 }
    42 
    43 .site {
    44     margin: 21px;
    45 }
    46 
    47 .site-inner {
    48     max-width: 710px;
    49 }
    50 
    51 .site-header {
    52     padding-top: 3.9375em;
    53     padding-bottom: 3.9375em;
    54 }
    55 
    56 .site-branding {
    57     float: left;
    58     margin-top: 1.3125em;
    59     margin-bottom: 1.3125em;
    60 }
    61 
    62 .site-title {
    63     font-size: 28px;
    64     line-height: 1.25;
    65 }
    66 
    67 .site-description {
    68     display: block;
    69 }
    70 
    71 .menu-toggle {
    72     float: right;
    73     font-size: 16px;
    74     margin: 1.3125em 0;
    75     padding: 0.8125em 0.875em 0.6875em;
    76 }
    77 
    78 .site-header-menu {
    79     clear: both;
    80     margin: 0;
    81     padding: 1.3125em 0;
    82 }
    83 
    84 .site-header .main-navigation + .social-navigation {
    85     margin-top: 2.625em;
    86 }
    87 
    88 .header-image {
    89     margin: 1.3125em 0;
    90 }
    91 
    92 .site-main {
    93     margin-bottom: 5.25em;
    94 }
    95 
    96 .post-navigation {
    97     margin-bottom: 5.25em;
    98 }
    99 
    100 .post-navigation .post-title {
    101     font-size: 28px;
    102     line-height: 1.25;
    103 }
    104 
    105 .pagination {
    106     margin: 0 7.6923% 4.421052632em;
    107 }
    108 
    109 .pagination .nav-links:before,
    110 .pagination .nav-links:after {
    111     display: none;
    112 }
    113 
    114 /* restore screen-reader-text */
    115 .pagination .current .screen-reader-text {
    116     position: absolute !important;
    117 }
    118 
    119 .pagination .page-numbers {
    120     display: inline-block;
    121     font-weight: 400;
    122 }
    123 
    124 .image-navigation .nav-previous,
    125 .image-navigation .nav-next,
    126 .comment-navigation .nav-previous,
    127 .comment-navigation .nav-next {
    128     display: inline-block;
    129 }
    130 
    131 .image-navigation .nav-previous + .nav-next:before,
    132 .comment-navigation .nav-previous + .nav-next:before {
    133     content: "\002f";
    134     display: inline-block;
    135     filter: alpha(opacity=70);
    136     padding: 0 0.538461538em;
    137 }
    138 
    139 .site-main > article {
    140     margin-bottom: 5.25em;
    141 }
    142 
    143 .entry-title {
    144     font-size: 33px;
    145     line-height: 1.2727272727;
    146     margin-bottom: 0.8484848485em;
    147 }
    148 
    149 .entry-content blockquote.alignleft,
    150 .entry-content blockquote.alignright {
    151     border-width: 4px 0 0 0;
    152     padding: 0.9473684211em 0 0;
    153     width: 50%;
    154 }
    155 
    156 .entry-footer > span:after {
    157     content: "\002f";
    158     display: inline-block;
    159     filter: alpha(opacity=70);
    160     padding: 0 0.538461538em;
    161 }
    162 
    163 .updated {
    164     display: none;
    165 }
    166 
    167 .updated.published {
    168     display: inline;
    169 }
    170 
    171 .comment-author {
    172     margin-bottom: 0;
    173 }
    174 
    175 .comment-author .avatar {
    176     height: 42px;
    177     position: relative;
    178     top: 0.25em;
    179     width: 42px;
    180 }
    181 
    182 .comment-list .children > li {
    183     padding-left: 1.75em;
    184 }
    185 
    186 .comment-list + .comment-respond,
    187 .comment-navigation + .comment-respond {
    188     padding-top: 3.5em;
    189 }
    190 
    191 .comment-reply-link {
    192     margin-top: 0;
    193 }
    194 
    195 .comments-area,
    196 .widget,
    197 .content-bottom-widgets .widget-area {
    198     margin-bottom: 5.25em;
    199 }
    200 
    201 .sidebar,
    202 .widecolumn {
    203     margin-bottom: 5.25em;
    204 }
    205 
    206 .site-footer .main-navigation,
    207 .site-footer .social-navigation {
    208     display: none;
    209 }
    210 
    211 .rtl .site-branding {
    212     float: right;
    213 }
    214 
    215 .rtl .menu-toggle {
    216     float: left;
    217 }
    218 
    219 .rtl .comment-list .children > li {
    220     padding-right: 1.75em;
    221     padding-left: 0;
    222 }
     1/* This theme does not support Internet Explorer since version 3.7. */
  • trunk/src/wp-content/themes/twentysixteen/functions.php

    r60913 r60965  
    404404    wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20240817' );
    405405
    406     // Load the Internet Explorer specific stylesheet.
    407     wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20170530' );
    408     wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );
    409 
    410     // Load the Internet Explorer 8 specific stylesheet.
    411     wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20170530' );
    412     wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' );
    413 
    414     // Load the Internet Explorer 7 specific stylesheet.
    415     wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20170530' );
    416     wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' );
    417 
    418     // Load the html5 shiv.
    419     wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' );
    420     wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' );
    421 
    422     // Skip-link fix is no longer enqueued by default.
     406    // Register handles for removed stylesheets and scripts.
     407    wp_register_style( 'twentysixteen-ie', false, array( 'twentysixteen-style' ) );
     408    wp_register_style( 'twentysixteen-ie8', false, array( 'twentysixteen-style' ) );
     409    wp_register_style( 'twentysixteen-ie7', false, array( 'twentysixteen-style' ) );
     410    wp_register_script( 'twentysixteen-html5', false );
    423411    wp_register_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20230526', array( 'in_footer' => true ) );
    424412
  • trunk/src/wp-content/themes/twentysixteen/inc/customizer.php

    r60913 r60965  
    792792    .no-comments,
    793793    .widecolumn .mu_register .mu_alert {
    794         border-color: {$colors['main_text_color']}; /* Fallback for IE7 and IE8 */
    795794        border-color: {$colors['border_color']};
    796795    }
     
    798797    hr,
    799798    code {
    800         background-color: {$colors['main_text_color']}; /* Fallback for IE7 and IE8 */
    801799        background-color: {$colors['border_color']};
    802800    }
     
    10901088        .comment-reply-title small a:hover,
    10911089        .comment-reply-title small a:focus {
    1092             color: %1$s
     1090            color: %1$s;
    10931091        }
    10941092
     
    11701168        .no-comments,
    11711169        .widecolumn .mu_register .mu_alert {
    1172             border-color: %1$s; /* Fallback for IE7 and IE8 */
    11731170            border-color: %2$s;
    11741171        }
     
    11761173        hr,
    11771174        code {
    1178             background-color: %1$s; /* Fallback for IE7 and IE8 */
    11791175            background-color: %2$s;
    11801176        }
  • trunk/src/wp-content/themes/twentysixteen/js/html5.js

    r40851 r60965  
    1 /**
    2 * @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
    3 */
    4 ;(function(window, document) {
    5 /*jshint evil:true */
    6   /** version */
    7   var version = '3.7.3';
    8 
    9   /** Preset options */
    10   var options = window.html5 || {};
    11 
    12   /** Used to skip problem elements */
    13   var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
    14 
    15   /** Not all elements can be cloned in IE **/
    16   var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;
    17 
    18   /** Detect whether the browser supports default html5 styles */
    19   var supportsHtml5Styles;
    20 
    21   /** Name of the expando, to work with multiple documents or to re-shiv one document */
    22   var expando = '_html5shiv';
    23 
    24   /** The id for the the documents expando */
    25   var expanID = 0;
    26 
    27   /** Cached data for each document */
    28   var expandoData = {};
    29 
    30   /** Detect whether the browser supports unknown elements */
    31   var supportsUnknownElements;
    32 
    33   (function() {
    34     try {
    35         var a = document.createElement('a');
    36         a.innerHTML = '<xyz></xyz>';
    37         //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles
    38         supportsHtml5Styles = ('hidden' in a);
    39 
    40         supportsUnknownElements = a.childNodes.length == 1 || (function() {
    41           // assign a false positive if unable to shiv
    42           (document.createElement)('a');
    43           var frag = document.createDocumentFragment();
    44           return (
    45             typeof frag.cloneNode == 'undefined' ||
    46             typeof frag.createDocumentFragment == 'undefined' ||
    47             typeof frag.createElement == 'undefined'
    48           );
    49         }());
    50     } catch(e) {
    51       // assign a false positive if detection fails => unable to shiv
    52       supportsHtml5Styles = true;
    53       supportsUnknownElements = true;
    54     }
    55 
    56   }());
    57 
    58   /*--------------------------------------------------------------------------*/
    59 
    60   /**
    61    * Creates a style sheet with the given CSS text and adds it to the document.
    62    * @private
    63    * @param {Document} ownerDocument The document.
    64    * @param {String} cssText The CSS text.
    65    * @returns {StyleSheet} The style element.
    66    */
    67   function addStyleSheet(ownerDocument, cssText) {
    68     var p = ownerDocument.createElement('p'),
    69         parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;
    70 
    71     p.innerHTML = 'x<style>' + cssText + '</style>';
    72     return parent.insertBefore(p.lastChild, parent.firstChild);
    73   }
    74 
    75   /**
    76    * Returns the value of `html5.elements` as an array.
    77    * @private
    78    * @returns {Array} An array of shived element node names.
    79    */
    80   function getElements() {
    81     var elements = html5.elements;
    82     return typeof elements == 'string' ? elements.split(' ') : elements;
    83   }
    84 
    85   /**
    86    * Extends the built-in list of html5 elements
    87    * @memberOf html5
    88    * @param {String|Array} newElements whitespace separated list or array of new element names to shiv
    89    * @param {Document} ownerDocument The context document.
    90    */
    91   function addElements(newElements, ownerDocument) {
    92     var elements = html5.elements;
    93     if(typeof elements != 'string'){
    94       elements = elements.join(' ');
    95     }
    96     if(typeof newElements != 'string'){
    97       newElements = newElements.join(' ');
    98     }
    99     html5.elements = elements +' '+ newElements;
    100     shivDocument(ownerDocument);
    101   }
    102 
    103    /**
    104    * Returns the data associated to the given document
    105    * @private
    106    * @param {Document} ownerDocument The document.
    107    * @returns {Object} An object of data.
    108    */
    109   function getExpandoData(ownerDocument) {
    110     var data = expandoData[ownerDocument[expando]];
    111     if (!data) {
    112         data = {};
    113         expanID++;
    114         ownerDocument[expando] = expanID;
    115         expandoData[expanID] = data;
    116     }
    117     return data;
    118   }
    119 
    120   /**
    121    * returns a shived element for the given nodeName and document
    122    * @memberOf html5
    123    * @param {String} nodeName name of the element
    124    * @param {Document|DocumentFragment} ownerDocument The context document.
    125    * @returns {Object} The shived element.
    126    */
    127   function createElement(nodeName, ownerDocument, data){
    128     if (!ownerDocument) {
    129         ownerDocument = document;
    130     }
    131     if(supportsUnknownElements){
    132         return ownerDocument.createElement(nodeName);
    133     }
    134     if (!data) {
    135         data = getExpandoData(ownerDocument);
    136     }
    137     var node;
    138 
    139     if (data.cache[nodeName]) {
    140         node = data.cache[nodeName].cloneNode();
    141     } else if (saveClones.test(nodeName)) {
    142         node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode();
    143     } else {
    144         node = data.createElem(nodeName);
    145     }
    146 
    147     // Avoid adding some elements to fragments in IE < 9 because
    148     // * Attributes like `name` or `type` cannot be set/changed once an element
    149     //   is inserted into a document/fragment
    150     // * Link elements with `src` attributes that are inaccessible, as with
    151     //   a 403 response, will cause the tab/window to crash
    152     // * Script elements appended to fragments will execute when their `src`
    153     //   or `text` property is set
    154     return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node;
    155   }
    156 
    157   /**
    158    * returns a shived DocumentFragment for the given document
    159    * @memberOf html5
    160    * @param {Document} ownerDocument The context document.
    161    * @returns {Object} The shived DocumentFragment.
    162    */
    163   function createDocumentFragment(ownerDocument, data){
    164     if (!ownerDocument) {
    165         ownerDocument = document;
    166     }
    167     if(supportsUnknownElements){
    168         return ownerDocument.createDocumentFragment();
    169     }
    170     data = data || getExpandoData(ownerDocument);
    171     var clone = data.frag.cloneNode(),
    172         i = 0,
    173         elems = getElements(),
    174         l = elems.length;
    175     for(;i<l;i++){
    176         clone.createElement(elems[i]);
    177     }
    178     return clone;
    179   }
    180 
    181   /**
    182    * Shivs the `createElement` and `createDocumentFragment` methods of the document.
    183    * @private
    184    * @param {Document|DocumentFragment} ownerDocument The document.
    185    * @param {Object} data of the document.
    186    */
    187   function shivMethods(ownerDocument, data) {
    188     if (!data.cache) {
    189         data.cache = {};
    190         data.createElem = ownerDocument.createElement;
    191         data.createFrag = ownerDocument.createDocumentFragment;
    192         data.frag = data.createFrag();
    193     }
    194 
    195 
    196     ownerDocument.createElement = function(nodeName) {
    197       //abort shiv
    198       if (!html5.shivMethods) {
    199           return data.createElem(nodeName);
    200       }
    201       return createElement(nodeName, ownerDocument, data);
    202     };
    203 
    204     ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' +
    205       'var n=f.cloneNode(),c=n.createElement;' +
    206       'h.shivMethods&&(' +
    207         // unroll the `createElement` calls
    208         getElements().join().replace(/[\w\-:]+/g, function(nodeName) {
    209           data.createElem(nodeName);
    210           data.frag.createElement(nodeName);
    211           return 'c("' + nodeName + '")';
    212         }) +
    213       ');return n}'
    214     )(html5, data.frag);
    215   }
    216 
    217   /*--------------------------------------------------------------------------*/
    218 
    219   /**
    220    * Shivs the given document.
    221    * @memberOf html5
    222    * @param {Document} ownerDocument The document to shiv.
    223    * @returns {Document} The shived document.
    224    */
    225   function shivDocument(ownerDocument) {
    226     if (!ownerDocument) {
    227         ownerDocument = document;
    228     }
    229     var data = getExpandoData(ownerDocument);
    230 
    231     if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
    232       data.hasCSS = !!addStyleSheet(ownerDocument,
    233         // corrects block display not defined in IE6/7/8/9
    234         'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
    235         // adds styling not present in IE6/7/8/9
    236         'mark{background:#FF0;color:#000}' +
    237         // hides non-rendered elements
    238         'template{display:none}'
    239       );
    240     }
    241     if (!supportsUnknownElements) {
    242       shivMethods(ownerDocument, data);
    243     }
    244     return ownerDocument;
    245   }
    246 
    247   /*--------------------------------------------------------------------------*/
    248 
    249   /**
    250    * The `html5` object is exposed so that more elements can be shived and
    251    * existing shiving can be detected on iframes.
    252    * @type Object
    253    * @example
    254    *
    255    * // options can be changed before the script is included
    256    * html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false };
    257    */
    258   var html5 = {
    259 
    260     /**
    261      * An array or space separated string of node names of the elements to shiv.
    262      * @memberOf html5
    263      * @type Array|String
    264      */
    265     'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video',
    266 
    267     /**
    268      * current version of html5shiv
    269      */
    270     'version': version,
    271 
    272     /**
    273      * A flag to indicate that the HTML5 style sheet should be inserted.
    274      * @memberOf html5
    275      * @type Boolean
    276      */
    277     'shivCSS': (options.shivCSS !== false),
    278 
    279     /**
    280      * Is equal to true if a browser supports creating unknown/HTML5 elements
    281      * @memberOf html5
    282      * @type boolean
    283      */
    284     'supportsUnknownElements': supportsUnknownElements,
    285 
    286     /**
    287      * A flag to indicate that the document's `createElement` and `createDocumentFragment`
    288      * methods should be overwritten.
    289      * @memberOf html5
    290      * @type Boolean
    291      */
    292     'shivMethods': (options.shivMethods !== false),
    293 
    294     /**
    295      * A string to describe the type of `html5` object ("default" or "default print").
    296      * @memberOf html5
    297      * @type String
    298      */
    299     'type': 'default',
    300 
    301     // shivs the document according to the specified `html5` object options
    302     'shivDocument': shivDocument,
    303 
    304     //creates a shived element
    305     createElement: createElement,
    306 
    307     //creates a shived documentFragment
    308     createDocumentFragment: createDocumentFragment,
    309 
    310     //extends list of elements
    311     addElements: addElements
    312   };
    313 
    314   /*--------------------------------------------------------------------------*/
    315 
    316   // expose html5
    317   window.html5 = html5;
    318 
    319   // shiv the document
    320   shivDocument(document);
    321 
    322   if(typeof module == 'object' && module.exports){
    323     module.exports = html5;
    324   }
    325 
    326 }(typeof window !== "undefined" ? window : this, document));
     1// This theme does not support Internet Explorer since version 3.7.
  • trunk/src/wp-content/themes/twentysixteen/readme.txt

    r60455 r60965  
    4646Twenty Sixteen Theme bundles the following third-party resources:
    4747
    48 HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas
    49 Licenses: MIT/GPL2
    50 Source: https://github.com/aFarkas/html5shiv
    51 
    5248Genericons icon font, Copyright 2013-2017 Automattic Inc.
    5349License: GNU GPL, Version 2 (or later)
Note: See TracChangeset for help on using the changeset viewer.