Last modified: 2010-05-15 15:37:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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...
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
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: ---


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 ===

=== 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:


(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.