Last modified: 2010-05-15 15:51:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12203, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10203 - Site js inclusion error
Site js inclusion error
Status: CLOSED INVALID
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.10.x
All All
: High enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-09 02:00 UTC by Ekin
Modified: 2010-05-15 15:51 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ekin 2007-06-09 02:00:03 UTC
I noticed this on wikipedia's html sources. You can see this line at the top of every page:

<script type="text/javascript" src="/w/index.php?title=-&amp;action=raw&amp;gen=js"><!-- site js --></script>

this should return raw text of "MediaWiki:Common.js" but since it's linked wrong, it returns the page about "-".

That's because the link itself is html encoded somehow.

/w/index.php?title=-&amp;action=raw&amp;gen=js

should have been

/w/index.php?title=-&action=raw&gen=js

that way it works.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-06-10 01:48:28 UTC
You're mistaken.  & in URLs must be HTML-encoded when used in HTML.  Any occurrence of & in HTML that's not part of a character entity is invalid (okay, unless in CDATA or a comment or whatever).  You can fairly easily verify that the JavaScript page is in fact being included on Wikipedia.
Comment 2 Ekin 2007-06-10 02:40:16 UTC
I noticed after filing the bug report so i tagged it as "INVALID". You're right, it works just fine.
Thanks.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links