Our first pass plan of approach:
- Load the full document into a DOM
- Unwrap all parsoid-generated section tags except the requested one from the URL parameter
- Convert the full document into the VE data model
- Build VE view tree for the selected DM node object
Current assumptions:
- We want to focus on sections as currently defined by Parsoid (not paragraphs/sentences as sections)
- The "selection" (document model node) loaded will be a single node rather than a group of siblings
Limitations of approach:
- Changing from one node to another will be more difficult
Benefits of approach:
- Don’t have to deal with potential corruption of the document tree hierarchy
- Avoid the addition of unwanted section tags