Last modified: 2010-05-15 15:37:27 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 T5476, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3476 - <h[1-6]>..</h[1-6]> inside <php>..</php> code counts towards section edit count (but not rendered headings count)
<h[1-6]>..</h[1-6]> inside <php>..</php> code counts towards section edit cou...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.5.x
All All
: Normal minor (vote)
: ---
Assigned To: Brion Vibber
:
Depends on:
Blocks: 4899
  Show dependency treegraph
 
Reported: 2005-09-15 21:48 UTC by Dave Miller (ProgMania)
Modified: 2010-05-15 15:37 UTC (History)
1 user (show)

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


Attachments

Description Dave Miller (ProgMania) 2005-09-15 21:48:44 UTC
I have installed the GeSHi syntax highlighting extension on my wiki. The page source looks like this:

----------------------------------
== Installation ==
=== File 1 ===
<php>
...
<h1>Blah</h1>
...
</php>

=== File 2 ===
...
----------------------------------

When that code is rendered, the html codes are escaped properly and the <h1> is not counted as a heading either in 
the TOC or the section counter. (If you haven't seen it in use, the output just looks like a color-coded 
<pre><nowiki>..</nowiki></pre> section, which does work properly btw.)

However, it IS counted on the edit page. e.g. If I click edit for File 2, the link is action=edit&section=3 
(correct). But what is displayed for editing is this:

----------------------------------
<h1>Blah</h1>
...
</php>
----------------------------------

(Section 2 is File 1 up to that <h1> tag and section 4 is File 2.)

Other extensions with heading tags in them have the same problem, but I tried it with <math> (just to test a built-
in tag) and had no problem.
Comment 1 Brion Vibber 2006-06-06 01:00:35 UTC
Fixed in r14583.

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


Navigation
Links