J
Jack
Hello,
What would be the easiest way to find the largest displayed document
within a frameset? Here are the steps I would like to take in
designing the algorithm:
1. Attempt to find a top level 'body' element of XHTMl document. If
found, return element.
2. No 'body' found, so attempt to find a 'frameset'.
3. Found 'frameset', so now find largest frame within 'frameset'.
4. Found largest frame within frameset, return 'body' element of
frame.
5. If largest frame contained no 'body' element repeast step 2,
continue until 'body' element found.
Problem:
1. What may appear to be the largest frame within a frameset, may in
fact be the smallest, if it contains nested framsets.
2. Seems messy.
What would be the easiest way to find the largest displayed document
within a frameset? Here are the steps I would like to take in
designing the algorithm:
1. Attempt to find a top level 'body' element of XHTMl document. If
found, return element.
2. No 'body' found, so attempt to find a 'frameset'.
3. Found 'frameset', so now find largest frame within 'frameset'.
4. Found largest frame within frameset, return 'body' element of
frame.
5. If largest frame contained no 'body' element repeast step 2,
continue until 'body' element found.
Problem:
1. What may appear to be the largest frame within a frameset, may in
fact be the smallest, if it contains nested framsets.
2. Seems messy.