Skip to content

Instantly share code, notes, and snippets.

@jameswomack
Created December 8, 2017 02:46
Show Gist options
  • Select an option

  • Save jameswomack/0e1ff109d2e0c86d8b47e3976e9a00cc to your computer and use it in GitHub Desktop.

Select an option

Save jameswomack/0e1ff109d2e0c86d8b47e3976e9a00cc to your computer and use it in GitHub Desktop.
Grouping content elements w/ their required parents
Reflect.defineProperty(DOMimatrix, 'groupingElements', {
value: { div:'div', figure:'figure', main:'main', ul:'ul', dd: [ 'dl' ], dt: [ 'dl' ], br:'br', hr:'hr', figcaption: [ 'figure' ], ol:'ol', li: ['menu','ul','ol'], pre:'pre', dl:'dl' }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment