Further followup to r59360
authorSam Reed <reedy@users.mediawiki.org>
Mon, 23 Nov 2009 19:16:43 +0000 (19:16 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 23 Nov 2009 19:16:43 +0000 (19:16 +0000)
Add spellcheck to html5attribs for blacklisting

Switch from xml to html input

includes/EditPage.php
includes/Html.php

index 65265ad..6870153 100644 (file)
@@ -1419,7 +1419,7 @@ class EditPage {
                                        Xml::tags( 'span', array( 'class' => $summaryClass, 'id' => "wpSummaryLabel" ),
                                                $commentsubject );
                                $commentsubject .= '&nbsp;';
-                               $commentsubject .= Xml::input( 'wpSummary',
+                               $commentsubject .= Html::input( 'wpSummary',
                                                                        60,
                                                                        $summarytext,
                                                                        array(
@@ -1447,7 +1447,7 @@ class EditPage {
                        $editsummary = Xml::tags( 'span',  array( 'class' => $summaryClass, 'id' => "wpSummaryLabel" ),
                                        $editsummary ) . ' ';
 
-                       $editsummary .= Xml::input( 'wpSummary',
+                       $editsummary .= Html::input( 'wpSummary',
                                60,
                                $summarytext,
                                array(
index 9573269..4ecfcba 100644 (file)
@@ -81,6 +81,7 @@ class Html {
                'reversed',
                'scoped',
                'seamless',
+               'spellcheck',
        );
 
        /**
@@ -147,6 +148,7 @@ class Html {
                                        'placeholder',
                                        'required',
                                        'step',
+                                       'spellcheck',
                                );
                                foreach ( $html5attribs as $badAttr ) {
                                        unset( $attribs[$badAttr] );