Merge "Fix some typos in comments"

This commit is contained in:
jenkins-bot 2022-02-08 20:00:11 +00:00 committed by Gerrit Code Review
commit e8e9ba5f98
5 changed files with 5 additions and 5 deletions

View file

@ -213,7 +213,7 @@ class CommentUtils {
* 3. If this is an mw:Transclusion node, return it; otherwise, go to step 1
*
* @param Node $node
* @return Element|null Translcusion node, null if not found
* @return Element|null Transclusion node, null if not found
*/
public static function getTranscludedFromElement( Node $node ): ?Element {
while ( $node ) {

View file

@ -252,7 +252,7 @@ CommentController.prototype.focus = function () {
CommentController.prototype.showAndFocus = function () {
var commentController = this;
this.focus();
// Calling can trigger a scroll-into-view withing VE, so wait for this to
// Calling can trigger a scroll-into-view within VE, so wait for this to
// happen so it doesn't cancel our scrolling of the whole widget into view
setTimeout( function () {
commentController.replyWidget.scrollElementIntoView( { padding: scrollPadding } );

View file

@ -1,7 +1,7 @@
/**
* MemoryStorage creates a wrapper around mw.SafeStorage objects, duplicating
* their contents in memory, so that even if the underlying storage mechanism
* fails (e.g. quote exceeded), the storage can be relied on before the
* fails (e.g. quota exceeded), the storage can be relied on before the
* page has been reloaded.
*
* @example

View file

@ -289,7 +289,7 @@ function removeAddedListItem( node ) {
*
* Assumes that the list has a parent node.
*
* @param {Node} list DOM node, will be wrapepd if it is a list element (dl/ol/ul)
* @param {Node} list DOM node, will be wrapped if it is a list element (dl/ol/ul)
* @param {DocumentFragment|null} fragment Containing document fragment if list has no parent
*/
function unwrapList( list, fragment ) {

View file

@ -178,7 +178,7 @@ function closestElement( node, tagNames ) {
* 3. If this is an mw:Transclusion node, return it; otherwise, go to step 1
*
* @param {Node} node
* @return {HTMLElement|null} Translcusion node, null if not found
* @return {HTMLElement|null} Transclusion node, null if not found
*/
function getTranscludedFromElement( node ) {
while ( node ) {