https://bugzilla.wikimedia.org/show_bug.cgi?id=35173
Web browser: ---
Bug #: 35173
Summary: HTML tag matching bugged
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: [other]
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 10222
--> https://bugzilla.wikimedia.org/attachment.cgi?id=10222
How the bug displays
I have been trying to develop an extension allowing for a more detailed and
enhanced transclusion feature, among other things. It involves certain new
tags, such as 'section'. I am aware that this tag is already defined in HTML5,
but the problem persisted when it was changed to a different name.
Apparently, there is a problem with the detection of nested tags.
To illustrate this, consider the following wikitext (which renders as seen in
the attachment):
#start sample
<section title="Test" headerlevel="2" name="testing">This is a test</section>
<section name="name">This is a test
<section name="sub">What should be a subsection</section>
Some further text
</section>
#end sample
As one sees, the parser handles perfectly the case where there is no nesting.
But then the second section, containing the subsection, apparently greedily
takes the first '/section' tag as its endpoint, while this is obviously not how
HTML should be read.
After a whole weekend, I decided to ask help here as I couldn't figure it out
myself.
Thanks in advance.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l