Esempio n. 1
0
File: Node.py Progetto: Aki92/thug
    def __init__(self, doc):
        self.doc = doc
        EventTarget.__init__(self)

        # Internet Explorer < 9 does not implement compareDocumentPosition
        if log.ThugOpts.Personality.isIE() and log.ThugOpts.Personality.browserVersion < '9.0':
            return

        self.compareDocumentPosition = self._compareDocumentPosition
Esempio n. 2
0
    def __init__(self, doc):
        self.doc = doc
        EventTarget.__init__(self)

        # Internet Explorer < 9 does not implement compareDocumentPosition
        if log.ThugOpts.Personality.isIE(
        ) and log.ThugOpts.Personality.browserVersion < '9.0':
            return

        self.compareDocumentPosition = self._compareDocumentPosition
Esempio n. 3
0
 def __init__(self, doc):
     self.doc = doc
     EventTarget.__init__(self)
     self.__init_personality()
Esempio n. 4
0
 def __init__(self, doc):
     self.doc = doc
     EventTarget.__init__(self)
     self.__init_personality()