Remove more IE6 and IE7 compatibility and notes
Neither is supported Bug: T232563 Change-Id: Ia7902f0b1df6148d819621dd5e57d2fe91a50973
This commit is contained in:
parent
02401af46e
commit
b31cec3cec
4 changed files with 4 additions and 14 deletions
|
|
@ -54,10 +54,7 @@ class TraditionalImageGallery extends ImageGalleryBase {
|
|||
if ( $this->mPerRow > 0 ) {
|
||||
$maxwidth = $this->mPerRow * ( $this->mWidths + $this->getAllPadding() );
|
||||
$oldStyle = $this->mAttribs['style'] ?? '';
|
||||
# _width is ignored by any sane browser. IE6 doesn't know max-width
|
||||
# so it uses _width instead
|
||||
$this->mAttribs['style'] = "max-width: {$maxwidth}px;_width: {$maxwidth}px;" .
|
||||
$oldStyle;
|
||||
$this->mAttribs['style'] = "max-width: {$maxwidth}px;" . $oldStyle;
|
||||
}
|
||||
|
||||
$attribs = Sanitizer::mergeAttributes(
|
||||
|
|
|
|||
|
|
@ -971,9 +971,6 @@ class HTMLForm extends ContextSource {
|
|||
* @since 1.27 takes an array as shown. Earlier versions accepted
|
||||
* 'name', 'value', 'id', and 'attribs' as separate parameters in that
|
||||
* order.
|
||||
* @note Custom labels ('label', 'label-message', 'label-raw') are not
|
||||
* supported for IE6 and IE7 due to bugs in those browsers. If detected,
|
||||
* they will be served buttons using 'value' as the button label.
|
||||
* @param array $data Data to define the button:
|
||||
* - name: (string) Button name.
|
||||
* - value: (string) Button value.
|
||||
|
|
|
|||
|
|
@ -17,10 +17,6 @@
|
|||
* client-side form validation. Used in HTMLFormFieldCloner for add/remove
|
||||
* buttons.
|
||||
*
|
||||
* Note that the buttonlabel parameters are not supported on IE6 and IE7 due to
|
||||
* bugs in those browsers. If detected, they will be served buttons using the
|
||||
* value of 'default' as the button label.
|
||||
*
|
||||
* @since 1.22
|
||||
*/
|
||||
class HTMLButtonField extends HTMLFormField {
|
||||
|
|
|
|||
|
|
@ -21537,7 +21537,7 @@ image:foobar.jpg
|
|||
image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
|
||||
</gallery>
|
||||
!! html/php
|
||||
<ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
|
||||
<ul class="gallery mw-gallery-traditional" style="max-width: 226px;">
|
||||
<li class="gallerycaption">Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
|
||||
<li class="gallerybox" style="width: 105px"><div style="width: 105px">
|
||||
<div class="thumb" style="height: 70px;">Nonexistent.jpg</div>
|
||||
|
|
@ -21572,7 +21572,7 @@ image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
|
|||
</div></li>
|
||||
</ul>
|
||||
!! html/parsoid
|
||||
<ul class="gallery mw-gallery-traditional" style="max-width: 226px; _width: 226px;" typeof="mw:Extension/gallery" about="#mwt3" data-mw='{"name":"gallery","attrs":{"widths":"70px","heights":"40px","perrow":"2"},"body":{}}'>
|
||||
<ul class="gallery mw-gallery-traditional" style="max-width: 226px;" typeof="mw:Extension/gallery" about="#mwt3" data-mw='{"name":"gallery","attrs":{"widths":"70px","heights":"40px","perrow":"2"},"body":{}}'>
|
||||
<li class="gallerycaption">Foo <a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a></li>
|
||||
<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width: 100px; height: 70px;"><figure-inline typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"apierror-filedoesnotexist","message":"This image does not exist."}]}'><a href="./Special:FilePath/Nonexistent.jpg"><span resource="./File:Nonexistent.jpg" data-width="70" data-height="40">File:Nonexistent.jpg</span></a></figure-inline></div><div class="gallerytext">caption</div></li>
|
||||
<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width: 100px; height: 70px;"><figure-inline typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"apierror-filedoesnotexist","message":"This image does not exist."}]}'><a href="./Special:FilePath/Nonexistent.jpg"><span resource="./File:Nonexistent.jpg" data-width="70" data-height="40">File:Nonexistent.jpg</span></a></figure-inline></div><div class="gallerytext"></div></li>
|
||||
|
|
@ -21597,7 +21597,7 @@ image:foobar.jpg
|
|||
image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
|
||||
</gallery>
|
||||
!! html/php
|
||||
<ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
|
||||
<ul class="gallery mw-gallery-traditional" style="max-width: 226px;">
|
||||
<li class="gallerycaption">Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
|
||||
<li class="gallerybox" style="width: 105px"><div style="width: 105px">
|
||||
<div class="thumb" style="height: 70px;">Nonexistent.jpg</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue