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

            Bug ID: 62700
           Summary: Edit on the section heading can't be reflected in the
                    preview in mobile section edit
           Product: MobileFrontend
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: stable
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: liang...@gmail.com
                CC: aricha...@wikimedia.org, jgon...@wikimedia.org,
                    jrob...@wikimedia.org, kw...@wikimedia.org,
                    maxsem.w...@gmail.com, rkald...@wikimedia.org,
                    tf...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

Assume there's a page with wikitext:

"""
AAA

== BBB ==

CCC

DDD

== EEE ==

FFF
"""

When I mobile edit section 1 (BBB), the textarea contains:

"""
== BBB ==

CCC

DDD
"""

and in preview (if I save it with no change) would be:

"""
CCC

DDD
"""

If change wikitext in the textarea to:

"""
CCC

== BBB ==

DDD
"""

and try to save it, the preview is still:

"""
CCC

DDD
"""

Or if I use wikitext:

"""
== GGG ==

CCC

DDD
"""

There's still no difference in preview.

I know this is because MediaWiki's preview generates the heading in HTML, so we
strip one heading in mobile preview for prettiness. Maybe we can only strip it
when the new heading is identical (content and position ie. at the beginning)
to the original, but this still makes removal of section heading invisible in
preview...

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to