Closed Bug 121567 Opened 23 years ago Closed 23 years ago

Page info strict warnings on XML pages

Categories

(SeaMonkey :: Page Info, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: db48x)

References

Details

Attachments

(1 file, 1 obsolete file)

document.links, document.images, document.forms are part of the HTML DOM. These are not defined on XML pages.... Not sure what a good way is to get the list of links/images on an XML page; this is compounded by the fact that these need not correspond to particular tags. I suggest just checking that |"links" in document| and the like before accessing it.
Blocks: 82059
mass moving open bugs pertaining to page info to pmac@netscape.com as qa contact. to find all bugspam pertaining to this, set your search string to "BigBlueDestinyIsHere".
QA Contact: sairuh → pmac
Attached patch patch (obsolete) — Splinter Review
Attachment #66661 - Flags: review+
Comment on attachment 66661 [details] [diff] [review] patch Could we do something sane if there is no document.images or whatever? e.g. getElementsByTagNameNS? This should be doable for images and forms and maybe for links.. (for links, is there a way to take XLink into account?)
Attachment #66661 - Flags: needs-work+
Component: XP Apps: GUI Features → Page Info
Attached patch adds sanitySplinter Review
can't do XLinks yet (simple or otherwise) because the treewalker keeps crashing mozilla.
Attachment #66661 - Attachment is obsolete: true
Comment on attachment 68806 [details] [diff] [review] adds sanity r=bzbarsky. If you have a test page for XLinks and test code that crashes, please mail me those. I'd like to get that working.... :)
Attachment #68806 - Flags: review+
it crashes any time a tree walker goes beyond the end of the document. I had meant to email a test case to sicking, but I seem to have lost it. I'll recreate it and email it to you both.
Status: NEW → ASSIGNED
Comment on attachment 68806 [details] [diff] [review] adds sanity sr=alecf
Attachment #68806 - Flags: superreview+
Comment on attachment 68806 [details] [diff] [review] adds sanity a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #68806 - Flags: approval+
checked in on the trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: