 xhr = require '../modules/xhr.coffee'
 gonzales = require '../modules/gonzales.coffee'
 
+META_ATTRIBS_FOR_DEL = ['Content-Security-Policy', 'refresh']
+ONEVENT_ATTRIBS = [ 'onload', 'onclick', 'onkeypress' ]
 
 class TreeElementNotFound extends Error
 

            counter--
            if error?
              console.error "(style)gonzales error:", error.stack
            else
              tag.innerHTML = result
            callback counter

      element.parentElement?.removeChild(element)

  deleteMeta: (document) ->
    metaElements = document.querySelectorAll('meta[http-equiv]')
    metaElements.forEach (element) ->
      if element.getAttribute('http-equiv') in META_ATTRIBS_FOR_DEL
        element.parentElement?.removeChild(element)

  deleteSendBoxAttrib: (document) ->
    iframes = document.querySelectorAll('iframe[sendbox]')
