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

           Summary: action=parse&pageid=n seems to not be parsing
                    correctly in some cases
           Product: MediaWiki
           Version: wikimedia-deployment
          Platform: All
               URL: http://en.wikipedia.org/w/api.php?action=parse&pageid=
                    3209758
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: API
        AssignedTo: roan.katt...@gmail.com
        ReportedBy: triste...@yahoo.com
                CC: bryan.tongm...@gmail.com, s...@reedyboy.net,
                    vasi...@gmail.com, soxre...@gmail.com


This URL:

http://en.wikipedia.org/w/api.php?action=parse&pageid=3209758

yields a page with a snippet of html looking like this:

&amp;lt;a href=&amp;quot;<a
href="http://toolserver.org/~geohack/geohack.php?pagename=St_James_Old_Cathedral&amp;amp;amp;params=37_42_26_S_144_56_17.9_E_&amp;quot;";>http://toolserver.org/~geohack/geohack.php?pagename=St_James_Old_Cathedral&amp;amp;amp;params=37_42_26_S_144_56_17.9_E_&amp;quot;</a>
class=&amp;quot;external text&amp;quot;
rel=&amp;quot;nofollow&amp;quot;&amp;gt;

which winds up looking somewhat like this:

<a href="<a
href="http://toolserver.org/~geohack/geohack.php?pagename=St_James_Old_Cathedral&params=37_42_26_S_144_56_17.9_E_"";>http://toolserver.org/~geohack/geohack.php?pagename=St_James_Old_Cathedral&params=37_42_26_S_144_56_17.9_E_";</a>
class="external text" rel="nofollow">

you can reproduce it quite easily with the url:

http://en.wikipedia.org/w/api.php?action=parse&pageid=3209758

and by viewing the source on the original page helps see how the html should
look:

http://en.wikipedia.org/wiki/St_James_Old_Cathedral

sorry in advance in case i've made a mistake and i'm not interpreting the html
correctly.

sorry in advance also if major is an exaggeration of the severity!

best regards and thank you for the API.

tristen

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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