https://bugzilla.wikimedia.org/show_bug.cgi?id=16330


Aryeh Gregor <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |m




--- Comment #4 from Aryeh Gregor <[email protected]>  2008-12-31 
14:32:42 UTC ---
My understanding is that *no* XML-style parser functions can be nested. 
<poem>Foo<poem>bar</poem>baz</poem> doesn't work either.  Nor <source>, etc. 
Tim would know more about this, and I'd advise anyone interested in fixing this
(or related bugs) to discuss their ideas with him.

(In reply to comment #3)
> The reason you had to use the #tag magic word is to circumvent the regexp on
> Cite_body.php:161 which was added to fix bug 6199 - that unbalanced refs do 
> not
> generate an error. The "fix" was not very good solution for two reasons:
> # You were able to side-step it with the #tag magic word

Which was added a year and a half after the patch was written.

> # It doesn't work if the last <ref> isn't closed (bug 15712, which I've marked
> as a dependency of this bug)

Because Cite.php isn't given access to the text containing "</ref>" in that
case.  It would have to have an extra parser hook somehow to check the trailing
text, and I don't know enough about the parser to get that to work without
considerable research for a fairly minor thing.

> Clearly if the Cite extension is not meant to support nesting <refs>, the
> regexp on Cite_body.php needs to be improved to resist the #tag magic word, 
> and
> bug 15712 needs to be fixed.

Patches are welcome.


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

Reply via email to