This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11580 - Infinite loop possible when an object tag contains an img tag
Summary: Infinite loop possible when an object tag contains an img tag
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 major
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 18:00 UTC by fd
Modified: 2010-12-20 18:25 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-12-20 18:00:19 UTC
Whenever the resource under test contains an <object> tag, the mobileOK checker searches for images within that object tag with a view to extracting linked resources that respect the dreadful "Included Resources" rules defined in mobileOK:
http://www.w3.org/TR/mobileOK-basic10-tests/#included_resources

When the img tag within the object tag is not the direct child of the object tag, the mobileOK Checker runs in an infinite loop.

Ex:
<object width="120" height="64" data="image.png" type="image/png">
 <a href="[foo]"><img src="image.gif" width="120" height="64" /></a>
</object>

Code to fix is in the extractImages method in the ObjectResourceExtractor.java file. A "while" loop fails to update the element that serves as condition to exit the loop.
Comment 1 fd 2010-12-20 18:25:38 UTC
Code updated.
Regression test added: OBJECTS_OR_SCRIPT 7.