Example #1
0
 def __init__(self, httpResponse, verbose=0):
     self._tagsContainingURLs =  ('go', 'a','anchor','img', 'link', 'script', 'iframe', 'object',
             'embed', 'area', 'frame', 'applet', 'input', 'base',
             'div', 'layer', 'ilayer', 'bgsound', 'form')
     self._urlAttrs = ('href', 'src', 'data', 'action' )
     
     sgmlParser.__init__(self, httpResponse, verbose)
Example #2
0
    def __init__(self, httpResponse, normalizeMarkup=True, verbose=0):
        self._tagsContainingURLs = (
            "a",
            "img",
            "link",
            "script",
            "iframe",
            "object",
            "embed",
            "area",
            "frame",
            "applet",
            "input",
            "base",
            "div",
            "layer",
            "ilayer",
            "bgsound",
            "form",
        )
        self._urlAttrs = ("href", "src", "data", "action")

        # An internal list to be used to save input tags that are found outside
        # of the scope of a form tag.
        self._saved_inputs = []
        self._textareaData = ""
        self._optionAttrs = []
        # Save for using in form parsing
        self._source_url = httpResponse.getURL()

        sgmlParser.__init__(self, httpResponse, normalizeMarkup, verbose)
Example #3
0
 def __init__(self, httpResponse, normalizeMarkup=True, verbose=0):
     self._tagsContainingURLs =  ('a', 'img', 'link', 'script', 'iframe', 'object',
             'embed', 'area', 'frame', 'applet', 'input', 'base',
             'div', 'layer', 'ilayer', 'bgsound', 'form')
     self._urlAttrs = ('href', 'src', 'data', 'action' )
     
     # An internal list to be used to save input tags that are found outside
     # of the scope of a form tag.
     self._saved_inputs = []
     self._textareaData = ""
     self._optionAttrs = []
     # Save for using in form parsing
     self._source_url = httpResponse.getURL()
     
     sgmlParser.__init__(self, httpResponse, normalizeMarkup, verbose)