Topic on Talk:Parsing/Notes/Section Wrapping

Page is a sequence of sections" doesn't map well to nested section tags?

2
GWicke (talkcontribs)

The current page text states:

"TODO: "Page is a sequence of sections" doesn't map well to nested section tags? It also doesn't match the "styled Template" mechanism being introduced, where styled templates would deliberately introduce

tags outside of/around a <section>."

This does not seem to be an accurate characterization of the implementation in https://github.com/wikimedia/parsoid-dom-utils. Take a look at the test cases in https://github.com/wikimedia/parsoid-dom-utils/blob/master/test/sections.yaml. Nested section tags as well as

wrappers are supported. Nested sections receive their own nested <section> tags. Div wrappers are wrapped into a section of their own, effectively expanding the scope of the outermost section to wrap the entire
.
SSastry (WMF) (talkcontribs)

C.Scott was responding to your review comment I posted from the gerrit review. He may not have seen the implementation. I'll just edit that out.