r106397 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106396‎ | r106397 | r106398 >
Date:23:59, 15 December 2011
Author:gwicke
Status:deferred
Tags:
Comment:
Small bug fix to heading level, spotted by Mike from localwiki- thanks!
Modified paths:
  • /trunk/extensions/VisualEditor/modules/parser/mediawiki.DOMConverter.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.DOMConverter.js
@@ -52,7 +52,7 @@
5353 return {
5454 handler: this._convertHTMLLeaf,
5555 type: 'heading',
56 - attribs: nodeName.substr(1)
 56+ attribs: { level: nodeName.substr(1) }
5757 };
5858 case 'li':
5959 case 'dt':
@@ -434,8 +434,9 @@
435435 }
436436 return out;
437437 };
438 -// Attribute map html (tagName, attributeName) pairs to WikiDom names for the
439 -// same element
 438+
 439+// Map HTML (tagName, attributeName) pairs to WikiDom names for the same
 440+// element
440441 DOMConverter.prototype._HTMLPropertiesToWikiAttributesMap = {
441442 a: {
442443 href: 'title'

Status & tagging log