| Index: webkit/port/bindings/v8/v8_custom.cpp
|
| ===================================================================
|
| --- webkit/port/bindings/v8/v8_custom.cpp (revision 5111)
|
| +++ webkit/port/bindings/v8/v8_custom.cpp (working copy)
|
| @@ -1329,9 +1329,13 @@
|
| // It must return the value of property after initialization.
|
| static HashMap<String, String> kLazyInitMap;
|
| if (kLazyInitMap.isEmpty()) {
|
| + // "new Image()" does not appear to be well-defined in a spec, but Safari,
|
| + // Opera, and Firefox all consider it to always create an HTML image
|
| + // element, regardless of the current doctype.
|
| kLazyInitMap.set("Image",
|
| "function Image() { \
|
| - return document.createElement('image'); \
|
| + return document.createElementNS( \
|
| + 'http://www.w3.org/1999/xhtml', 'img'); \
|
| }; \
|
| Image");
|
| kLazyInitMap.set("Option",
|
|
|