Page MenuHomePhabricator

Parsoid extension API should use DOM fragments, not documents
Open, NormalPublic

Description

All DOM building should really take place in a single document context; this simplifies handling the bag-on-the-side implementation and would allow a 1-to-1 mapping between env and doc.

In particular, the toDOM method in the extension API currently returns a DOMDocument; it should return a DOMFragment (owned by the env's main document) instead.

Event Timeline

cscott created this task.Apr 24 2019, 4:16 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 24 2019, 4:16 PM
ssastry triaged this task as Normal priority.May 7 2019, 9:26 PM
ssastry moved this task from Backlog to Post-Port Work on the Parsoid-PHP board.