summaryrefslogtreecommitdiffstats
path: root/Tools/webchecker
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-04-05 18:14:50 (GMT)
committerFred Drake <fdrake@acm.org>2001-04-05 18:14:50 (GMT)
commitd34a9c98a9ee275d2c737f32d9a1c98fb2b75dae (patch)
treeec21ea57c8117f1f15b411fed593c4dede338d38 /Tools/webchecker
parent37f026381167db43ab3ccce59bfe26a098eeac56 (diff)
downloadcpython-d34a9c98a9ee275d2c737f32d9a1c98fb2b75dae.zip
cpython-d34a9c98a9ee275d2c737f32d9a1c98fb2b75dae.tar.gz
cpython-d34a9c98a9ee275d2c737f32d9a1c98fb2b75dae.tar.bz2
Added more link attributes based on additonal information from Chris
McCafferty <christopher.mccafferty@csg.ch>, and a bit of experimentation with Navigator 4.7. HTML-as-deployed is evil!
Diffstat (limited to 'Tools/webchecker')
-rwxr-xr-xTools/webchecker/webchecker.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py
index b369ab8..091d0d2 100755
--- a/Tools/webchecker/webchecker.py
+++ b/Tools/webchecker/webchecker.py
@@ -794,7 +794,7 @@ class MyHTMLParser(sgmllib.SGMLParser):
self.link_attr(attributes, 'href')
def do_body(self, attributes):
- self.link_attr(attributes, 'background')
+ self.link_attr(attributes, 'background', 'bgsound')
def do_img(self, attributes):
self.link_attr(attributes, 'src', 'lowsrc')
@@ -820,6 +820,18 @@ class MyHTMLParser(sgmllib.SGMLParser):
def do_script(self, attributes):
self.link_attr(attributes, 'src')
+ def do_table(self, attributes):
+ self.link_attr(attributes, 'background')
+
+ def do_td(self, attributes):
+ self.link_attr(attributes, 'background')
+
+ def do_th(self, attributes):
+ self.link_attr(attributes, 'background')
+
+ def do_tr(self, attributes):
+ self.link_attr(attributes, 'background')
+
def link_attr(self, attributes, *args):
for name, value in attributes:
if name in args: