Last modified: 2014-08-07 11:06:00 UTC
<section> extensions get parsed as plain text on mediawiki.org which then causes them to be wrapped in nowiki-tags on save if any paragraph with this tag is edited. Bug report: /mnt/bugs/2013-05-01T14:00:52.600Z-Echo_(Notifications)%2Fstatus
<section> is an HTML5 element, so is currently not considered as a potential extension tag in the tokenizer. We can easily consider it as an extension tag (similar to <source>), but then its content will only be editable as wikitext unless we implement custom rendering for this extension tag that exposes its content as editable HTML. Since sections are large parts of the page, I'd suggest to only treat this as an extension once we have specialized editing support for its content.
[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]
*** Bug 52252 has been marked as a duplicate of this bug. ***
The problem with treating it as native HTML <section> element is that it doesn't really use HTML-like syntax. As noted at https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion#Step_1:_Mark_off_sections, the syntax uses what looks like self-closing tags, with the real content in between: <section begin=chapter1 />this is a chapter<section end=chapter1 /> This is not how an HTML5 section tag (http://html5doctor.com/the-section-element/), or really any HTML tag, works. See also my comment (based on a real example) and link at bug 52252.
It could still probably be mapped to a real section tag, similar to how other wikitext syntax is (e.g. == Heading == is more or less mapped to <h2>Heading</h2>).
(In reply to comment #5) > It could still probably be mapped to a real section tag, similar to how other > wikitext syntax is (e.g. == Heading == is more or less mapped to > <h2>Heading</h2>). It should not be hard to perform this mapping in Parsoid while converting from wikitext to HTML. We will also need to map custom extension attributes to valid HTML attributes.