Beispiel #1
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
Beispiel #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
Beispiel #3
0
 def __init__(self, doc):
     self.doc = doc
     EventTarget.__init__(self)
     self.__init_personality()
Beispiel #4
0
 def __init__(self, doc):
     self.doc = doc
     EventTarget.__init__(self)
     self.__init_personality()