https://bugzilla.wikimedia.org/show_bug.cgi?id=48169

       Web browser: ---
            Bug ID: 48169
           Summary: Extension tags not escaped in WTS
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JS/serializer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Extension tags in plain text content should be escaped in the serializer:

echo 'some <section>foo</section>' | node parse --html2wt
--extensions section
some <section>foo</section>

Expected output:
some <nowiki><section></nowiki>foo<nowiki></section></nowiki>

Alternative expected output:
&lt;section&gt;foo&lt;/section&gt;

Fixing this will break round-tripping of section tags, which are a special case
as <section> is also an HTML5 tag. See bug 47936 for details on that aspect.

-- 
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

Reply via email to