r30370 - Code Review
From MediaWiki.org
For
MediaWiki
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
)
Jump to:
navigation
,
search
Repository:
MediaWiki
Revision:
<
r30369
|
r30370
(
on ViewVC
) |
r30371
>
Date:
01:35, 1 February 2008
Author:
tstarling
Status:
ok
Tags:
Comment:
Fix a regression of
bug 4899
due to HHPv2: <h> tags now appear on tree depth levels other than the first. The 4899 aspect is easily fixed by having extractSections() look at the i attribute instead of just counting.
The implications in general are that headings inside properly-closed double braces will not have section edit links, even where the braces are broken by invalid title characters and expanded literally to recover the heading. Respecting such headings as section breaks would run into the same problems as those discussed w.r.t. LST on wikitech-l -- there's no way to recover the text for a section that starts on one tree level and finishes on a different one. The fact that higher level <h> nodes appear in the XML is just due to a shortcut in preprocessToObj(): headings are put into the stack in case the braces turn out to be unclosed, in which case the heading will be at level 1 of the tree.
Modified paths:
/trunk/phase3/includes/Parser.php
(modified) (
diff
)
/trunk/phase3/includes/Preprocessor_DOM.php
(modified) (
diff
)
Diff
[
purge
]
Loading diff…
Views
Special page
Personal tools
Try Beta
Log in / create account
Site
Main Page
Browse categories
Community portal
Recent changes
Tech blog
Search
Support
User help
Technical manual
FAQ
Support desk
Download
Get MediaWiki
Get extensions
Development
Bug tracker
Download from SVN
View code changes
Code comments
Browse SVN
Code docs
Communication
IRC (#mediawiki)
Mailing lists
Toolbox
Special pages