Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: webkit/port/bindings/v8/v8_custom.cpp

Issue 10268: Fix Chromium bug 4178... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/data/layout_tests/chrome/svg/custom/new-image-is-html-element-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « webkit/data/layout_tests/chrome/svg/custom/new-image-is-html-element-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698