http://bugzilla.opendarwin.org/show_bug.cgi?id=10151
ghostmap XHTML + SVG fails due to javascript undefined exception
Make sure document.URL works when called from a non-HTML document.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15692
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-07-29 Rob Buis <buis@kde.org>
+
+ Reviewed by Geoff.
+
+ Updated test case result as a result of:
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=10151
+ ghostmap XHTML + SVG fails due to javascript undefined exception
+ The new test case result now should match the required spec result
+ and acts as a way to test document.URL on non-html documents.
+
+ * dom/xhtml/level2/html/HTMLDocument04-expected.txt:
+
2006-07-29 Darin Adler <darin@apple.com>
- changed this test to a plain-text one and added text explaining what it tests
+ALERT: file:///Users/rwlbuis/svn/test/WebKit/LayoutTests/dom/xhtml/level2/html/HTMLDocument04.xhtml
Test http://www.w3.org/2001/DOM-Test-Suite/level2/html/HTMLDocument04
-Status failure
-Message URLLink: assertNotNull failed
+Status Success
+2006-07-29 Rob Buis <buis@kde.org>
+
+ Reviewed by Geoff.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=10151
+ ghostmap XHTML + SVG fails due to javascript undefined exception
+
+ Make sure document.URL works when called from a non-HTML document.
+
+ * bindings/js/kjs_html.cpp:
+ (KJS::JSHTMLDocument::getValueProperty):
+ * bindings/js/kjs_html.h:
+ (KJS::JSHTMLDocument::):
+ * dom/Document.idl:
+
2006-07-29 Mike Emmel <mike.emmel@gmail.com>
Reviewed and tweaked by Darin.
title JSHTMLDocument::Title DontDelete
referrer JSHTMLDocument::Referrer DontDelete|ReadOnly
domain JSHTMLDocument::Domain DontDelete
- URL JSHTMLDocument::URL DontDelete|ReadOnly
body JSHTMLDocument::Body DontDelete
location JSHTMLDocument::Location DontDelete
cookie JSHTMLDocument::Cookie DontDelete
return jsString(doc.referrer());
case Domain:
return jsString(doc.domain());
- case URL:
- return jsString(doc.URL());
case Body:
return toJS(exec, body);
case Location:
void putValueProperty(ExecState*, int token, JSValue*, int /*attr*/);
virtual const ClassInfo* classInfo() const { return &info; }
static const ClassInfo info;
- enum { Title, Referrer, Domain, URL, Body, Location, Cookie,
+ enum { Title, Referrer, Domain, Body, Location, Cookie,
Images, Applets, Embeds, Links, Forms, Anchors, Scripts, All, Clear, Open, Close,
Write, WriteLn, GetElementsByName, CaptureEvents, ReleaseEvents,
BgColor, FgColor, AlinkColor, LinkColor, VlinkColor, LastModified, Height, Width, Dir, DesignMode };
// IE extensions
+ readonly attribute DOMString URL;
+
attribute [ConvertNullStringTo=Undefined] DOMString charset;
readonly attribute [ConvertNullStringTo=Undefined] DOMString defaultCharset;