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

James Forrester <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected].
                   |                            |org
          Component|Data Model                  |JS/General
           Assignee|[email protected]      |[email protected]
            Product|VisualEditor                |Parsoid
            Summary|Redundant nowiki tags       |Parsoid: Square brackets
                   |around simple square        |sometimes (but not always)
                   |brackets                    |get escaped with <nowiki>s
                   |                            |when PHP parser wouldn't

--- Comment #1 from James Forrester <[email protected]> ---
This appears to be a Parsoid bug; adjusting to reflect that.

If you use the RT form - http://parsoid.wmflabs.org/_rtform/ - on the above
string:

[[Link target|These are '''just''' [normal brackets]]]
->
[[Link target|These are '''just'''<nowiki> [normal brackets]</nowiki>]]

However, it generates correct HTML; for the other string:

[[Link target|These are ['''just''' normal brackets]]]
->
<p data-parsoid="{&quot;dsr&quot;:[0,54]}"><a rel="mw:WikiLink"
href="./Link_target"
data-parsoid="{&quot;tsr&quot;:[0,53],&quot;a&quot;:{&quot;href&quot;:&quot;./Link_target&quot;},&quot;sa&quot;:{&quot;href&quot;:&quot;Link
target&quot;},&quot;stx&quot;:&quot;piped&quot;,&quot;dsr&quot;:[0,53]}">These
are [<b
data-parsoid="{&quot;tsr&quot;:[25,28],&quot;dsr&quot;:[25,35]}">just</b>
normal brackets</a>]</p>

Whereas canonical HTML from the PHP parser is:

<p><a href="/wiki/Link_target" title="Link target">These are [<b>just</b>
normal brackets]</a></p>

[i.e., the closing not-used-for-a-link square bracket is inside the link, not
outside it - however, this is probably a separate bug; happy to re-file.]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to