https://bugzilla.wikimedia.org/show_bug.cgi?id=62609
Bug ID: 62609
Summary: ViualEditor: MediaWiki <source> used between text
nodes should render block instead of inline-block
Product: VisualEditor
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
Created attachment 14803
--> https://bugzilla.wikimedia.org/attachment.cgi?id=14803&action=edit
Screenshot of MediaWiki rendering
Wikitext:
=== Example ===
Foo <code>bar</code> baz.
You'll want to add <source lang="javascript">
"predef": [
"OO",
]
</source> x y.
In MediaWiki's PHP parser:
<h3>..</h3>
<p>Foo <code>bar</code> baz.</p>
<p>You'll want to add</p>
<div> .. syntax highlgiht ..
<p>x y.</p>
In Parsoid:
<h3>..</h3>
<p>Foo <code>bar</code> baz.</p>
You'll want to add
<div> .. syntax highlgiht ..
x y.
Notice the lack of paragraphs from the Parsoid DOM, though this is odd, it
still renders fine visually in browsers.
In VisualEditor:
<h3 class="ve-ce-branchNode">Naming</h3>
<p class="ve-ce-generated-wrapper ve-ce-branchNode">
You'll want to add
<span class="ve-ce-leafNode ve-ce-generatedContentNode
ve-ce-mwExtensionNode ve-ce-mwAlienExtensionNode ve-ce-protectedNode"
contenteditable="false">
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"
typeof="mw:Extension/source" data-mw=".." about="#mwt24">..</div>
</span>
x y.
</p>
It renders as an inline-block within a paragraph, that's where it goes wrong.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l