Problem
When an empty slot is output in explicit json, it ends up:
"slots": {
"default": {
"element": "div"
}
}
Proposed resolution
When there is nothing in the slot, it's an empty element, and the empty element is called div (default), do not output it
Issue fork custom_elements-3560572
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
fagoImplicit output has that:
In explicit output we are skipping special handling like this, still we don't want to have it as empty element.
Comment #4
fagofixed and added test
Comment #5
fagoMerging with green pipeline!