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

       Web browser: ---
            Bug ID: 56381
           Summary: Change DOM rendering of <nowiki /> to be <span
                    typeof="mw:Nowiki"></span> or similar?
           Product: Parsoid
           Version: unspecified
          Hardware: All
               URL: https://en.wikipedia.org/w/index.php?title=Footprints_
                    %28film%29&curid=39472392&diff=579475542&oldid=5793576
                    88
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: DOM
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

VisualEditor deliberately drops <span typeof="mw:Nowiki"> annotations on
changed content to prevent originally-necessary <nowiki> blocks interfering
with editing. This means that HTML editors don't need to know or care about
<nowiki>s, and they are just magically sorted out in the back-end so the
resultant wikitext is the most like what a human would create.

However, <nowiki />s come out as a <meta typeof="mw:Placeholder">, which
VisualEditor doesn't show to users but also won't ever remove, leading to
potential issues where a no-longer-needed <nowiki /> sits in the wikitext,
disruptively confusing to wikitext editors.

If Parsoid instead represented it as <span typeof="mw:Nowiki"></span> or
similar, VisualEditor could do the same (well, a bit more work) and so drop it
when the context has been edited, letting Parsoid re-generate it if needed.

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