6 protected function setUp() {
10 'wgUseMediaWikiUIEverywhere' =>
false,
18 $contLangObj->setNamespaces( [
30 9 =>
'MediaWiki_talk',
32 11 =>
'Template_talk',
34 15 =>
'Category_talk',
38 $this->setContentLang( $contLangObj );
41 $userLangObj->setNamespaces( [
47 3 =>
"Usuario discusión",
49 5 =>
"Wiki discusión",
51 7 =>
"Archivo discusión",
53 9 =>
"MediaWiki discusión",
55 11 =>
"Plantilla discusión",
57 13 =>
"Ayuda discusión",
59 15 =>
"Categoría discusión",
60 100 =>
"Personalizado",
61 101 =>
"Personalizado discusión",
63 $this->setUserLang( $userLangObj );
65 $this->restoreWarnings =
false;
71 if ( $this->restoreWarnings ) {
72 $this->restoreWarnings =
false;
73 Wikimedia\restoreWarnings();
98 'Self-closing tag for short-tag elements' 102 '<element></element>',
104 'Close tag for empty element (null, null)' 108 '<element></element>',
110 'Close tag for empty element (array, string)' 117 # HTML is not an XML MimeType 118 [
'text/html',
false ],
119 # XML is an XML MimeType 120 [
'text/xml',
true ],
121 [
'application/xml',
true ],
122 # XHTML is an XML MimeType 123 [
'application/xhtml+xml',
true ],
124 # Make sure other +xml MimeTypes are supported 125 # SVG is another random MimeType even though we don't use it 126 [
'image/svg+xml',
true ],
127 # Complete random other MimeTypes are not XML 128 [
'text/plain',
false ],
147 'skip keys with null value' 151 'skip keys with false value' 156 'keep keys with an empty string' 167 'Boolean attributes do not generates output when value is false' 172 'Boolean attributes do not generates output when value is null' 178 'Boolean attributes have no value when value is true' 183 'Boolean attributes have no value when value is true (passed as numerical array)' 194 'Integer value is cast to a string' 199 'Float value is cast to a string' 208 ' value="stringValue"',
210 'Object value is converted to a string' 223 'Empty string is always quoted' 228 'Simple string value needs no quotes' 233 'Number 1 value needs no quotes' 238 'Number 0 value needs no quotes' 251 ' class="redundant spaces here"',
253 'Normalization should strip redundant spaces' 258 'Normalization should remove duplicates in string-lists' 260 # ## "EMPTY" ARRAY VALUES 264 'Value with an empty array' 269 'Array with null, empty string and spaces' 271 # ## NON-EMPTY ARRAY VALUES 281 'Normalization should remove duplicates in the array' 291 'Normalization should remove duplicates in string-lists in the array' 302 ' class="booltrue one"',
307 # Method
use isset() internally, make sure we
do discard
310 'boolfalse' =>
false,
357 '<select id="namespace" name="namespace">' .
"\n" .
358 '<option value="0">(Principal)</option>' .
"\n" .
359 '<option value="1">Talk</option>' .
"\n" .
360 '<option value="2">User</option>' .
"\n" .
361 '<option value="3">User talk</option>' .
"\n" .
362 '<option value="4">MyWiki</option>' .
"\n" .
363 '<option value="5">MyWiki Talk</option>' .
"\n" .
364 '<option value="6">File</option>' .
"\n" .
365 '<option value="7">File talk</option>' .
"\n" .
366 '<option value="8">MediaWiki</option>' .
"\n" .
367 '<option value="9">MediaWiki talk</option>' .
"\n" .
368 '<option value="10">Template</option>' .
"\n" .
369 '<option value="11">Template talk</option>' .
"\n" .
370 '<option value="14">Category</option>' .
"\n" .
371 '<option value="15">Category talk</option>' .
"\n" .
372 '<option value="100">Custom</option>' .
"\n" .
373 '<option value="101">Custom talk</option>' .
"\n" .
376 'Basic namespace selector without custom options' 380 '<label for="mw-test-namespace">Select a namespace:</label>' .
"\u{00A0}" .
381 '<select id="mw-test-namespace" name="wpNamespace">' .
"\n" .
382 '<option value="all">todos</option>' .
"\n" .
383 '<option value="0">(Principal)</option>' .
"\n" .
384 '<option value="1">Talk</option>' .
"\n" .
385 '<option value="2" selected="">User</option>' .
"\n" .
386 '<option value="3">User talk</option>' .
"\n" .
387 '<option value="4">MyWiki</option>' .
"\n" .
388 '<option value="5">MyWiki Talk</option>' .
"\n" .
389 '<option value="6">File</option>' .
"\n" .
390 '<option value="7">File talk</option>' .
"\n" .
391 '<option value="8">MediaWiki</option>' .
"\n" .
392 '<option value="9">MediaWiki talk</option>' .
"\n" .
393 '<option value="10">Template</option>' .
"\n" .
394 '<option value="11">Template talk</option>' .
"\n" .
395 '<option value="14">Category</option>' .
"\n" .
396 '<option value="15">Category talk</option>' .
"\n" .
397 '<option value="100">Custom</option>' .
"\n" .
398 '<option value="101">Custom talk</option>' .
"\n" .
401 [
'selected' =>
'2',
'all' =>
'all',
'label' =>
'Select a namespace:' ],
402 [
'name' =>
'wpNamespace',
'id' =>
'mw-test-namespace' ]
404 'Basic namespace selector with custom values' 408 '<label for="namespace">Select a namespace:</label>' .
"\u{00A0}" .
409 '<select id="namespace" name="namespace">' .
"\n" .
410 '<option value="0">(Principal)</option>' .
"\n" .
411 '<option value="1">Talk</option>' .
"\n" .
412 '<option value="2">User</option>' .
"\n" .
413 '<option value="3">User talk</option>' .
"\n" .
414 '<option value="4">MyWiki</option>' .
"\n" .
415 '<option value="5">MyWiki Talk</option>' .
"\n" .
416 '<option value="6">File</option>' .
"\n" .
417 '<option value="7">File talk</option>' .
"\n" .
418 '<option value="8">MediaWiki</option>' .
"\n" .
419 '<option value="9">MediaWiki talk</option>' .
"\n" .
420 '<option value="10">Template</option>' .
"\n" .
421 '<option value="11">Template talk</option>' .
"\n" .
422 '<option value="14">Category</option>' .
"\n" .
423 '<option value="15">Category talk</option>' .
"\n" .
424 '<option value="100">Custom</option>' .
"\n" .
425 '<option value="101">Custom talk</option>' .
"\n" .
428 [
'label' =>
'Select a namespace:' ]
430 'Basic namespace selector with a custom label but no id attribtue for the <select>' 434 '<select id="namespace" name="namespace">' .
"\n" .
435 '<option value="0">(Principal)</option>' .
"\n" .
436 '<option value="1">Discusión</option>' .
"\n" .
437 '<option value="2">Usuario</option>' .
"\n" .
438 '<option value="3">Usuario discusión</option>' .
"\n" .
439 '<option value="4">Wiki</option>' .
"\n" .
440 '<option value="5">Wiki discusión</option>' .
"\n" .
441 '<option value="6">Archivo</option>' .
"\n" .
442 '<option value="7">Archivo discusión</option>' .
"\n" .
443 '<option value="8">MediaWiki</option>' .
"\n" .
444 '<option value="9">MediaWiki discusión</option>' .
"\n" .
445 '<option value="10">Plantilla</option>' .
"\n" .
446 '<option value="11">Plantilla discusión</option>' .
"\n" .
447 '<option value="12">Ayuda</option>' .
"\n" .
448 '<option value="13">Ayuda discusión</option>' .
"\n" .
449 '<option value="14">Categoría</option>' .
"\n" .
450 '<option value="15">Categoría discusión</option>' .
"\n" .
451 '<option value="100">Personalizado</option>' .
"\n" .
452 '<option value="101">Personalizado discusión</option>' .
"\n" .
455 [
'in-user-lang' =>
true ]
457 'Basic namespace selector in user language' 466 '<select id="namespace" name="namespace">' .
"\n" .
467 '<option value="2">User</option>' .
"\n" .
468 '<option value="4">MyWiki</option>' .
"\n" .
469 '<option value="5">MyWiki Talk</option>' .
"\n" .
470 '<option value="6">File</option>' .
"\n" .
471 '<option value="7">File talk</option>' .
"\n" .
472 '<option value="8">MediaWiki</option>' .
"\n" .
473 '<option value="9">MediaWiki talk</option>' .
"\n" .
474 '<option value="10">Template</option>' .
"\n" .
475 '<option value="11">Template talk</option>' .
"\n" .
476 '<option value="14">Category</option>' .
"\n" .
477 '<option value="15">Category talk</option>' .
"\n" .
480 [
'exclude' => [ 0, 1, 3, 100, 101 ] ]
482 'Namespace selector namespace filtering.' 485 '<select id="namespace" name="namespace">' .
"\n" .
486 '<option value="" selected="">todos</option>' .
"\n" .
487 '<option value="2">User</option>' .
"\n" .
488 '<option value="4">MyWiki</option>' .
"\n" .
489 '<option value="5">MyWiki Talk</option>' .
"\n" .
490 '<option value="6">File</option>' .
"\n" .
491 '<option value="7">File talk</option>' .
"\n" .
492 '<option value="8">MediaWiki</option>' .
"\n" .
493 '<option value="9">MediaWiki talk</option>' .
"\n" .
494 '<option value="10">Template</option>' .
"\n" .
495 '<option value="11">Template talk</option>' .
"\n" .
496 '<option value="14">Category</option>' .
"\n" .
497 '<option value="15">Category talk</option>' .
"\n" .
500 [
'exclude' => [ 0, 1, 3, 100, 101 ],
'all' =>
'' ]
502 'Namespace selector namespace filtering with empty custom "all" option.' 511 '<select id="namespace" name="namespace">' .
"\n" .
512 '<option disabled="" value="0">(Principal)</option>' .
"\n" .
513 '<option disabled="" value="1">Talk</option>' .
"\n" .
514 '<option disabled="" value="2">User</option>' .
"\n" .
515 '<option disabled="" value="3">User talk</option>' .
"\n" .
516 '<option disabled="" value="4">MyWiki</option>' .
"\n" .
517 '<option value="5">MyWiki Talk</option>' .
"\n" .
518 '<option value="6">File</option>' .
"\n" .
519 '<option value="7">File talk</option>' .
"\n" .
520 '<option value="8">MediaWiki</option>' .
"\n" .
521 '<option value="9">MediaWiki talk</option>' .
"\n" .
522 '<option value="10">Template</option>' .
"\n" .
523 '<option value="11">Template talk</option>' .
"\n" .
524 '<option value="14">Category</option>' .
"\n" .
525 '<option value="15">Category talk</option>' .
"\n" .
526 '<option value="100">Custom</option>' .
"\n" .
527 '<option value="101">Custom talk</option>' .
"\n" .
530 'disable' => [ 0, 1, 2, 3, 4 ]
532 'Namespace selector namespace disabling' 542 '<input type="' . $HTML5InputType .
'"/>',
544 'In HTML5, Html::element() should accept type="' . $HTML5InputType .
'"' 555 '<div class="warningbox">warn</div>' 566 '<div class="errorbox">err</div>' 570 '<div class="errorbox"><h2>heading</h2>err</div>' 574 '<div class="errorbox"><h2>0</h2>err</div>' 585 '<div class="successbox">great</div>' 589 '<div class="successbox"><script>beware no escaping!</script></div>' 615 $cases[] = [
$type ];
631 # Use cases in a concise format: 632 # <expected>, <element name>, <array of attributes> [, <message>] 633 # Will be mapped to Html::element() 636 # ## Generic cases, match $attribDefault static array 637 $cases[] = [
'<area/>',
638 'area', [
'shape' =>
'rect' ]
641 $cases[] = [
'<button type="submit"></button>',
642 'button', [
'formaction' =>
'GET' ]
644 $cases[] = [
'<button type="submit"></button>',
645 'button', [
'formenctype' =>
'application/x-www-form-urlencoded' ]
648 $cases[] = [
'<canvas></canvas>',
649 'canvas', [
'height' =>
'150' ]
651 $cases[] = [
'<canvas></canvas>',
652 'canvas', [
'width' =>
'300' ]
654 # Also check with numeric values 655 $cases[] = [
'<canvas></canvas>',
656 'canvas', [
'height' => 150 ]
658 $cases[] = [
'<canvas></canvas>',
659 'canvas', [
'width' => 300 ]
662 $cases[] = [
'<form></form>',
663 'form', [
'action' =>
'GET' ]
665 $cases[] = [
'<form></form>',
666 'form', [
'autocomplete' =>
'on' ]
668 $cases[] = [
'<form></form>',
669 'form', [
'enctype' =>
'application/x-www-form-urlencoded' ]
672 $cases[] = [
'<input/>',
673 'input', [
'formaction' =>
'GET' ]
675 $cases[] = [
'<input/>',
676 'input', [
'type' =>
'text' ]
679 $cases[] = [
'<keygen/>',
680 'keygen', [
'keytype' =>
'rsa' ]
683 $cases[] = [
'<link/>',
684 'link', [
'media' =>
'all' ]
687 $cases[] = [
'<menu></menu>',
688 'menu', [
'type' =>
'list' ]
691 $cases[] = [
'<script></script>',
692 'script', [
'type' =>
'text/javascript' ]
695 $cases[] = [
'<style></style>',
696 'style', [
'media' =>
'all' ]
698 $cases[] = [
'<style></style>',
699 'style', [
'type' =>
'text/css' ]
702 $cases[] = [
'<textarea></textarea>',
703 'textarea', [
'wrap' =>
'soft' ]
708 # <link type="text/css"> 709 $cases[] = [
'<link/>',
710 'link', [
'type' =>
'text/css' ]
713 # <input> specific handling 714 $cases[] = [
'<input type="checkbox"/>',
715 'input', [
'type' =>
'checkbox',
'value' =>
'on' ],
716 'Default value "on" is stripped of checkboxes',
718 $cases[] = [
'<input type="radio"/>',
719 'input', [
'type' =>
'radio',
'value' =>
'on' ],
720 'Default value "on" is stripped of radio buttons',
722 $cases[] = [
'<input type="submit" value="Submit"/>',
723 'input', [
'type' =>
'submit',
'value' =>
'Submit' ],
724 'Default value "Submit" is kept on submit buttons (for possible l10n issues)',
726 $cases[] = [
'<input type="color"/>',
727 'input', [
'type' =>
'color',
'value' =>
'' ],
729 $cases[] = [
'<input type="range"/>',
730 'input', [
'type' =>
'range',
'value' =>
'' ],
733 # <button> specific handling 734 # see remarks on https://msdn.microsoft.com/library/ms535211(v=vs.85).aspx 735 $cases[] = [
'<button type="submit"></button>',
736 'button', [
'type' =>
'submit' ],
737 'According to standard the default type is "submit". ' 738 .
'Depending on compatibility mode IE might use "button", instead.',
741 # <select> specific handling 742 $cases[] = [
'<select multiple=""></select>',
743 'select', [
'size' =>
'4',
'multiple' =>
true ],
745 # .. with numeric value 746 $cases[] = [
'<select multiple=""></select>',
747 'select', [
'size' => 4,
'multiple' =>
true ],
749 $cases[] = [
'<select></select>',
750 'select', [
'size' =>
'1',
'multiple' =>
false ],
752 # .. with numeric value 753 $cases[] = [
'<select></select>',
754 'select', [
'size' => 1,
'multiple' =>
false ],
757 # Passing an array as value 758 $cases[] = [
'<a class="css-class-one css-class-two"></a>',
759 'a', [
'class' => [
'css-class-one',
'css-class-two' ] ],
760 "dropDefaults accepts values given as an array" 763 # FIXME: doDropDefault should remove defaults given in an array 764 # Expected should be '<a></a>' 765 $cases[] = [
'<a class=""></a>',
766 'a', [
'class' => [
'',
'' ] ],
767 "dropDefaults accepts values given as an array" 770 # Craft the Html elements 772 foreach ( $cases
as $case ) {
788 '<input type="radio" value="testval" name="testname"/>',
790 'Input wrapper with type and value.' 793 '<input name="testname"/>',
795 'Input wrapper with all default values.' 804 '<input type="checkbox" value="1" name="testname"/>',
806 'Checkbox wrapper unchecked.' 809 '<input checked="" type="checkbox" value="1" name="testname"/>',
811 'Checkbox wrapper checked.' 814 '<input type="checkbox" value="testval" name="testname"/>',
815 Html::check(
'testname',
false, [
'value' =>
'testval' ] ),
816 'Checkbox wrapper with a value override.' 825 '<input type="radio" value="1" name="testname"/>',
827 'Radio wrapper unchecked.' 830 '<input checked="" type="radio" value="1" name="testname"/>',
832 'Radio wrapper checked.' 835 '<input type="radio" value="testval" name="testname"/>',
836 Html::radio(
'testname',
false, [
'value' =>
'testval' ] ),
837 'Radio wrapper with a value override.' 846 '<label for="testid">testlabel</label>',
854 [ [],
'',
'when there are no images, return empty string' ],
856 [
'1x' =>
'1x.png',
'1.5x' =>
'1_5x.png',
'2x' =>
'2x.png' ],
857 '1x.png 1x, 1_5x.png 1.5x, 2x.png 2x',
858 'pixel depth keys may include a trailing "x"' 861 [
'1' =>
'1x.png',
'1.5' =>
'1_5x.png',
'2' =>
'2x.png' ],
862 '1x.png 1x, 1_5x.png 1.5x, 2x.png 2x',
863 'pixel depth keys may omit a trailing "x"' 866 [
'1' =>
'small.png',
'1.5' =>
'large.png',
'2' =>
'large.png' ],
867 'small.png 1x, large.png 1.5x',
868 'omit larger duplicates' 871 [
'1' =>
'small.png',
'2' =>
'large.png',
'1.5' =>
'large.png' ],
872 'small.png 1x, large.png 1.5x',
873 'omit larger duplicates in irregular order' 883 $this->assertEquals(
Html::srcSet( $images ), $expected, $message );
893 'EXAMPLE.label("foo");',
894 '<script>EXAMPLE.label("foo");</script>' 897 'EXAMPLE.is(a && b);',
898 '<script>EXAMPLE.is(a && b);</script>' 901 'EXAMPLE.label("<a>");',
902 '<script>EXAMPLE.label("<a>");</script>' 904 'Script closing string (lower)' => [
905 'EXAMPLE.label("</script>");',
906 '<script>/* ERROR: Invalid script */</script>',
909 'Script closing with non-standard attributes (mixed)' => [
910 'EXAMPLE.label("</SCriPT and STyLE>");',
911 '<script>/* ERROR: Invalid script */</script>',
914 'HTML-comment-open and script-open' => [
919 'var a = "<!--<script>";',
920 '<script>/* ERROR: Invalid script */</script>',
932 Wikimedia\suppressWarnings();
933 $this->restoreWarnings =
true;
941 return 'stringValue';
testExpandAttributes_ArrayOnNonListValueAttribute_ThrowsException()
Html::expandAttributes MWException
testWrapperCheck()
Html::check
testCanDisableANamespaces()
Html::namespaceSelector
static radio( $name, $checked=false, array $attribs=[])
Convenience function to produce a radio button (input element with type=radio)
static element( $element, $attribs=[], $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
processing should stop and the error should be shown to the user * false
testErrorBox()
Html::errorBox Html::messageBox
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
static provideHtml5InputTypes()
List of input element types values introduced by HTML5 Full list at https://www.w3.org/TR/html-markup/input.html.
static openElement( $element, $attribs=[])
Identical to rawElement(), but has no third parameter and omits the end tag (and the self-closing '/'...
static warningBox( $html)
Return a warning box.
testElementBasics()
Html::element Html::rawElement Html::openElement Html::closeElement.
testExpandAttributesVariousExpansions()
Please note it output a string prefixed with a space! Html::expandAttributes.
static inlineScript( $contents, $nonce=null)
Output an HTML script tag with the given contents.
testCanFilterOutNamespaces()
Html::namespaceSelector
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
testSrcSet( $images, $expected, $message)
provideSrcSetImages Html::srcSet
testExpandAttributesForNumbers()
Html::expandAttributes
testExpandAttributesSpaceSeparatedAttributesWithBoolean()
Test feature added by r96188, let pass attributes values as a PHP array.
testExpandAttributesListValueAttributes()
Html::expandAttributes has special features for HTML attributes that use space separated lists and al...
testWrapperRadio()
Html::radio
testExpandAttributesForObjects()
Html::expandAttributes
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null
static factory( $code)
Get a cached or new language object for a given language code.
static expandAttributes(array $attribs)
Given an associative array of element attributes, generate a string to stick after the element name i...
static input( $name, $value='', $type='text', array $attribs=[])
Convenience function to produce an "<input>" element.
testInlineScript( $code, $expected, $error=false)
provideInlineScript Html::inlineScript
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable & $code
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
testExpandAttributesForBooleans()
Html::expandAttributes
static check( $name, $checked=false, array $attribs=[])
Convenience function to produce a checkbox (input element with type=checkbox)
static srcSet(array $urls)
Generate a srcset attribute value.
static errorBox( $html, $heading='')
Return an error box.
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
static provideInlineScript()
testSuccessBox()
Html::successBox Html::messageBox
testNamespaceSelector()
Html::namespaceSelector Html::namespaceSelectorOptions
testWrapperLabel()
Html::label
static successBox( $html)
Return a success box.
static provideSrcSetImages()
testOpenElement()
PHPUnit_Framework_Error_Notice given element name with space Html::openElement.
testExpandAttributesSkipsNullAndFalse()
Html::expandAttributes
static isXmlMimeType( $mimetype)
Determines if the given MIME type is xml.
testXmlMimeType( $mimetype, $isXmlMimeType)
dataXmlMimeType Html::isXmlMimeType
testWarningBox()
Html::warningBox Html::messageBox
testValueIsAuthoritativeInSpaceSeparatedAttributesArrays()
How do we handle duplicate keys in HTML attributes expansion? We could pass a "class" the values: 'GR...
testDropDefaults( $expected, $element, $attribs, $message='')
Test out Html::element drops or enforces default value Html::dropDefaults provideElementsWithAttrib...
This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible values
testWrapperInput()
Html::input
testHtmlElementAcceptsNewHtml5TypesInHtml5Mode( $HTML5InputType)
provideHtml5InputTypes Html::element
static provideElementsWithAttributesHavingDefaultValues()
static label( $label, $id, array $attribs=[])
Convenience function for generating a label for inputs.
static namespaceSelector(array $params=[], array $selectAttribs=[])
Build a drop-down box for selecting a namespace.