Closed Bug 111536 Opened 24 years ago Closed 24 years ago

XHTML as XML: document.body, forms, embeds, images, applets, links, anchors lose properties

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 98
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 111514

People

(Reporter: WeirdAl, Assigned: jst)

Details

(Keywords: testcase, xhtml)

Attachments

(6 files)

The following objects lose all properties when viewed from an XHTML document as text/xml: document.body document.images document.applets document.links document.forms document.anchors document.embeds Four-part testcase coming up.
Attached file Testcase, part 1 of 4
Attached file Testcase, part 2 of 4
Same as Part 1, different mime-type.
Attached file Testcase, part 3 of 4
Attached file Testcase, part 4 of 4
Click on this file to see the testcase.
This bug blocks 111514 and 109373 because they are specific cases of the same problem.
Blocks: 109373, 111514
Keywords: testcase, xhtml
I'd like these semantic javascript collections to be available in XML documents because I write bookmarklets (javascript programs that can be stored as bookmarks and then run on multiple web sites). It would suck if the bookmarklets using document.links and document.images didn't work on XML pages.
As requested, I'm providing a testcase using application/xhtml+xml.
Fixed a slight XHTML invalid element in the first part (I always forget the alt="" attribute), but that shouldn't affect the testcase. Click on this file to see an application/xhtml+xml testcase.
The problem here, as in bug 111514, is that the document isn't an HTMLDocument, so the appropriate methods aren't there. The DOM-2-HTML WD says that it applies to xhtml, and when the correct mimetype is given, then we should probably do this.
No longer blocks: 109373
*** This bug has been marked as a duplicate of 111514 ***
No longer blocks: 111514
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verified as dup
Status: RESOLVED → VERIFIED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: