Page MenuHomePhabricator

Shim the <tag>, <statictag>, and <tåg> pseudo-extensions for parserTests.
Closed, ResolvedPublic

Description

PHP ParserTests adds three pseudo-extensions to verify extension tag parsing.

We should implement these in Parsoid, in order to similarly verify extension tag parsing. (As in PHP land, they ought to be installed only when running ParserTests.)

They would also serve as good living documentation of how to write a Parsoid extension-parsing module. The <gallery> extension has been wanting this for a while; Parsoid should really be extensible in this way.

(Also, the PHP <tag> implementation should use JSON serialization instead of PHP var_dump, so the Parsoid implementation doesn't have to implement a var_dump clone.)

Event Timeline

cscott raised the priority of this task from to Needs Triage.
cscott updated the task description. (Show Details)
cscott added a project: Parsoid.
cscott subscribed.
Arlolra triaged this task as Medium priority.Mar 17 2015, 8:00 PM
Arlolra subscribed.

T55874 talks about the general Parsoid extension mechanism.

Change 256171 had a related patch set uploaded (by Arlolra):
WIP: Add a generic extension registration mechanism

https://gerrit.wikimedia.org/r/256171

Change 260877 had a related patch set uploaded (by Arlolra):
Shim the <tag>, <statictag>, and <tåg> pseudo-extensions

https://gerrit.wikimedia.org/r/260877

Change 260877 merged by jenkins-bot:
Shim the <tag>, <statictag>, and <tåg> pseudo-extensions

https://gerrit.wikimedia.org/r/260877

Arlolra removed a project: Patch-For-Review.
Arlolra set Security to None.