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

--- Comment #7 from [email protected] ---
Referring to Gabriel's comment above, as it turns out, the "rare" case is not
so rare after all.  [[Template:efn]] has a nested {{#tag:ref..}} in the
template's body which is why we don't correctly handle it.

Since the PHP parser will not tell us where its <ref> tag came from (via a
literal <ref> or a {{#tag:ref}}), we cannot use existing heuristics to support
this.  Short of instrumenting the php parser or analyzing the template body and
correlating parser output with it (both of which are complicated), one solution
to this would be to "trust" templates, i.e. if a template is producing a nested
ref-tag, "trust" the template author to know what (s)he is doing and simply
accept the nested <ref> tag whereas if it showed up at the top-level, we would
have rejected it as malformed.

Unless there are objections, I am going to go with this approach for now.

-- 
You are receiving this mail because:
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