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

       Web browser: ---
             Bug #: 35247
           Summary: content-holding <div> should only contain the page
                    text
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: User interface
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


The new bidirectionality-improving div should only contain the parsed page
content, nothing else. This is perfect when viewing articles, and helps scripts
a lot when extracting that content.

But I think it is only needed for article views. For example in diff mode, it
contains 
 <form id="mw-fr-reviewform">
 <div id="mw-fr-diff-headeritems">
 <table class="diff">
 <hr class="diff-hr"/>
 <h2 class="diff-currentversion-title">
 ...and then the real content

Also, in edit mode the <div id="mw-content-text"> contains
 <div id="editnotice-ns-0"/>
 <div id="mw-edit-longpage-hint">
 <div id="wikiPreview" class="ontop" style="display: none;"/>
 <form id="editform">
None of them is really content-text, I suspect. I think it would be better to
have the div only appear (maybe empty) in the #wikiPreviw.

Also, it for example broke my script which tried to
 document.getElementById("bodyContent").insertBefore(newElement,
document.getElementById("editform"));

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to