Closed Bug 56622 Opened 24 years ago Closed 24 years ago

document object cookie property not available in XML documents

Categories

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

x86
Other
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: martin, Assigned: nisheeth_mozilla)

Details

The following xml document shows "undefined" for document.cookie:

<?xml version="1.0"?>

<root xmlns:html="http://www.w3.org/1999/xhtml">

<html:script language="JavaScript">
alert(document.cookie);
</html:script>

</root>

This works okay in Internet Explorer (once given a style sheet).
If you have an XML document, then the 'document' object will be a 'Document'
DOM interface. If you have an HTML document, then the 'document' object will
be implicitly cast to am 'HTMLDocument' interface.

Only the 'HTMLDocument' interface has the 'cookie' attribute.

Thus, marking INVALID. This is one of my first excursions into the DOM specs,
feel free to reopen if I am mistaken...

Reference: http://www.w3.org/DOM/
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Component: XML → DOM Level 1
Resolution: --- → INVALID
Component: DOM Level 1 → DOM Style
Component: DOM Style → DOM Core
VERIFIED invalid
Status: RESOLVED → VERIFIED
Component: DOM: Core → DOM: Core & HTML
QA Contact: chrispetersen → general
You need to log in before you can comment on or make changes to this bug.