           for child in node.childNodes
             @mark indentDepth, child, depth + 1, null
         else
-          if (node.nodeName isnt 'script' or not @hasAttribute node, 'src') and
-              node.__indentLocation.end isnt node.__location.end
+          unless TAGS[node.nodeName].content is 'optional' or
+              (node.nodeName is 'script' and @hasAttribute node, 'src') or
+              node.__indentLocation.end is node.__location.end
+            console.log  TAGS[node.nodeName]
             @htmlSocket node, depth + 1, null, indentBounds
 
       when 'text'

  #Form
  form: {category: 'form'}
  input: {category: 'form'}
  textarea: {category: 'form'}
  label: {category: 'form'}
  button: {category: 'form'}
  select: {category: 'form'}

  dialog: {category: 'other'}
  noscript: {category: 'other'}
  template: {category: 'other'}
  canvas: {category: 'other', content: 'optional'}
  svg: {category: 'other'}
  frameset: {category: 'other'}
}
