Closed Bug 434758 Opened 16 years ago Closed 13 years ago

Setting document.documentURI throws NS_ERROR_NOT_IMPLEMENTED exception

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: romain, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; fr-fr) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18
Build Identifier: 

An exception is thrown when we try to change the document.documentURI value.

Exception is (from Firebug) :
[Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOM3Document.documentURI]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: :: init :: line 1" data: no]

According to W3C, this property should not be read-only :
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/ecma-script-binding.html


Reproducible: Always

Steps to Reproduce:
1. Go to http://sandbox.baseclip.com/setDocumentURI.html#test
2. Watch the exception !

Actual Results:  
Exception thrown.

Expected Results:  
An alert showing the documentURI without the hash appears.
Component: DOM: Core → DOM: Core & HTML
The original URL no longer exists, please update this bug and let us know if you're still seeing this issue, and if so, give us an updated URL to work with. If you're not seeing this issue, please close the bug as WORKSFORME.
Whiteboard: [closeme 2010-12-11]
Confirming. It's not yet clear what should happen here.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Removing closeme from whiteboard since comment 2 added after it/bug now confirmed.
Whiteboard: [closeme 2010-12-11]
Depends on: 675287
Doesn't throw anymore (outside strict mode).
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.