From 258009f38330e654795fcf9d92d0e6537e4bce9c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 23 Nov 2009 19:16:43 +0000 Subject: [PATCH] Further followup to r59360 Add spellcheck to html5attribs for blacklisting Switch from xml to html input --- includes/EditPage.php | 4 ++-- includes/Html.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 65265ad4b7..6870153557 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1419,7 +1419,7 @@ class EditPage { Xml::tags( 'span', array( 'class' => $summaryClass, 'id' => "wpSummaryLabel" ), $commentsubject ); $commentsubject .= ' '; - $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( diff --git a/includes/Html.php b/includes/Html.php index 9573269215..4ecfcba9c6 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -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] ); -- 2.20.1