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)
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.
| Reporter | ||
Comment 1•24 years ago
|
||
| Reporter | ||
Comment 2•24 years ago
|
||
Same as Part 1, different mime-type.
| Reporter | ||
Comment 3•24 years ago
|
||
| Reporter | ||
Comment 4•24 years ago
|
||
Click on this file to see the testcase.
| Reporter | ||
Comment 5•24 years ago
|
||
This bug blocks 111514 and 109373 because they are specific cases of the same
problem.
Comment 6•24 years ago
|
||
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.
| Reporter | ||
Comment 7•24 years ago
|
||
As requested, I'm providing a testcase using application/xhtml+xml.
| Reporter | ||
Comment 8•24 years ago
|
||
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.
Comment 9•24 years ago
|
||
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.
| Assignee | ||
Comment 10•24 years ago
|
||
*** This bug has been marked as a duplicate of 111514 ***
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.
Description
•