Ticket #2385 (closed bug: wontfix)
IE6, but not FF3 or Opera9, error on loading blank GML layer
| Reported by: | CharlesHarrison | Owned by: | crschmidt |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.9 Release |
| Component: | Request | Version: | 2.8 |
| Keywords: | gml ie blank layer | Cc: | |
| State: |
Description
Suppose you want to write a page where someone can add a few features into a layer, convert them into GML, and cut and paste the GML into a file. You need to start with a blank GML layer, and the only way I've discovered of doing this is to omit the source url. This works fine in FF3 and Opera9, but not in IE6.
If a blank GML layer (no source file url specified in the constructor) is loaded over a WMS layer of UK Ordnance Survey tiles, as here ...
... then IE6 throws an error. However, if only the line loading the blank GML layer is commented out (line 35 in this file), then there is no error. When a blank GML layer is loaded over, say, a Metacarta WMS layer, as here ...
... sometimes there is an error, sometimes not, this page is producing one for me at the moment. When a source file is specified, IE6 doesn't throw an error even if the path is incorrect (though in that case OL throws up an alert).
On this first investigation, the error didn't seem to prevent subsequent functionality.
The error thrown is ...
Line: 731
Char: 78
Error: Object required
Code: 0
URL: <document.URL>
... though I suspect the line number refers to a different file, perhaps the OL source js, as is common with IE errors.
