示例#1
0
文件: Node.py 项目: 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
示例#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
示例#3
0
文件: Node.py 项目: Gr3yR0n1n/thug
 def __init__(self, doc):
     self.doc = doc
     EventTarget.__init__(self)
     self.__init_personality()
示例#4
0
 def __init__(self, doc):
     self.doc = doc
     EventTarget.__init__(self)
     self.__init_personality()