Changeset 24935 in webkit
- Timestamp:
- Aug 8, 2007 10:14:42 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r24934 r24935 1 2007-08-07 Kevin McCullough <kmccullough@apple.com> 2 3 Reviewed by Maciej and Hyatt. 4 5 - <rdar://problem/4976879> REGRESSION: Safari doesn't work with Zimbra enhanced login. 6 - Reverting a previous change, and modifying how documents are created so that we better match other browsers behavior with respect to namespaceURIs. 7 8 * dom/xhtml/level1/core/hc_documentcreateelementcasesensitive-expected.txt: 9 * fast/dom/Document/replace-child-expected.txt: 10 * http/tests/misc/createElementNamespace1-expected.txt: Added. 11 * http/tests/misc/createElementNamespace1.xml: Added. 12 * http/tests/misc/createElementNamespace2-expected.txt: Added. 13 * http/tests/misc/createElementNamespace2.xhtml: Added. 14 * http/tests/misc/createElementNamespace3-expected.txt: Added. 15 * http/tests/misc/createElementNamespace3.html: Added. 16 1 17 2007-08-08 Cameron Zwarich <cwzwarich@uwaterloo.ca> 2 18 -
trunk/LayoutTests/dom/xhtml/level1/core/hc_documentcreateelementcasesensitive-expected.txt
r24146 r24935 1 1 Test http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_documentcreateelementcasesensitive 2 Status failure 3 Message nodeName1: assertEquals failed, actual acronym, expected ACRONYM. 2 Status Success -
trunk/LayoutTests/fast/dom/Document/replace-child-expected.txt
r24146 r24935 1 1 This tests that various combinations of replaceChild on the document works as specified. If this test succeeds, there will be a number of "SUCCESS" lines below followed by "SUCCESS - All tests succeeded". 2 2 replacing element with element 3 SUCCESS: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><bar xmlns="http://www.w3.org/1999/xhtml"></bar>3 SUCCESS: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><bar/> 4 4 replacing element with doctype 5 5 SUCCESS: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> -
trunk/WebCore/ChangeLog
r24934 r24935 1 2007-08-07 Kevin McCullough <kmccullough@apple.com> 2 3 Reviewed by Maciej and Hyatt. 4 5 - <rdar://problem/4976879> REGRESSION: Safari doesn't work with Zimbra enhanced login. 6 - Reverting a previous change, and modifying how documents are created so that we better match other browsers behavior with respect to namespaceURIs. 7 8 * WebCore.xcodeproj/project.pbxproj: 9 * dom/DOMImplementation.cpp: 10 (WebCore::DOMImplementation::createDocument): 11 * dom/Document.cpp: 12 (WebCore::Document::Document): 13 (WebCore::Document::createElement): 14 * dom/Document.h: 15 * html/HTMLDocument.cpp: 16 (WebCore::HTMLDocument::createElement): 17 * html/HTMLDocument.h: 18 1 19 2007-08-08 Cameron Zwarich <cwzwarich@uwaterloo.ca> 2 20 -
trunk/WebCore/dom/DOMImplementation.cpp
r24869 r24935 34 34 #include "FTPDirectoryDocument.h" 35 35 #include "HTMLDocument.h" 36 #include "HTMLNames.h" 36 37 #include "HTMLViewSourceDocument.h" 37 38 #include "Image.h" … … 276 277 else 277 278 #endif 278 doc = new Document(this, 0); 279 if (namespaceURI == HTMLNames::xhtmlNamespaceURI) 280 doc = new Document(this, 0, true); 281 else 282 doc = new Document(this, 0); 279 283 280 284 // now get the interesting parts of the doctype … … 357 361 return new HTMLDocument(this, frame); 358 362 if (type == "application/xhtml+xml") 359 return new Document(this, frame );363 return new Document(this, frame, true); 360 364 361 365 #if ENABLE(FTPDIR) -
trunk/WebCore/dom/Document.cpp
r24900 r24935 246 246 247 247 // FrameView might be 0 248 Document::Document(DOMImplementation* impl, Frame* frame )248 Document::Document(DOMImplementation* impl, Frame* frame, bool isXHTML) 249 249 : ContainerNode(0) 250 250 , m_implementation(impl) … … 280 280 , m_inLowBandwidthDisplay(false) 281 281 #endif 282 , m_isXHTML(isXHTML) 282 283 { 283 284 m_document.resetSkippingRef(this); … … 472 473 PassRefPtr<Element> Document::createElement(const String &name, ExceptionCode& ec) 473 474 { 474 String lowerName(name.lower()); 475 if (!isValidName(lowerName)) { 476 ec = INVALID_CHARACTER_ERR; 477 return 0; 478 } 479 return HTMLElementFactory::createHTMLElement(AtomicString(lowerName), this, 0, false); 475 if (m_isXHTML) { 476 if (!isValidName(name)) { 477 ec = INVALID_CHARACTER_ERR; 478 return 0; 479 } 480 481 return HTMLElementFactory::createHTMLElement(AtomicString(name), this, 0, false); 482 } else 483 return createElementNS(nullAtom, name, ec); 480 484 } 481 485 -
trunk/WebCore/dom/Document.h
r24900 r24935 137 137 class Document : public ContainerNode { 138 138 public: 139 Document(DOMImplementation*, Frame* );139 Document(DOMImplementation*, Frame*, bool isXHTML = false); 140 140 ~Document(); 141 141 … … 163 163 virtual void childrenChanged(); 164 164 Element* documentElement() const; 165 PassRefPtr<Element> createElement(const String& tagName, ExceptionCode&);165 virtual PassRefPtr<Element> createElement(const String& tagName, ExceptionCode&); 166 166 PassRefPtr<DocumentFragment> createDocumentFragment (); 167 167 PassRefPtr<Text> createTextNode(const String& data); … … 885 885 bool m_useSecureKeyboardEntryWhenActive; 886 886 887 bool m_isXHTML; 888 887 889 #if USE(LOW_BANDWIDTH_DISPLAY) 888 890 bool m_inLowBandwidthDisplay; -
trunk/WebCore/html/HTMLDocument.cpp
r24831 r24935 66 66 #include "HTMLBodyElement.h" 67 67 #include "HTMLElement.h" 68 #include "HTMLElementFactory.h" 68 69 #include "HTMLNames.h" 69 70 #include "HTMLTokenizer.h" … … 299 300 { 300 301 return newChild->hasTagName(htmlTag) || newChild->isCommentNode(); 302 } 303 304 PassRefPtr<Element> HTMLDocument::createElement(const String &name, ExceptionCode& ec) 305 { 306 String lowerName(name.lower()); 307 if (!isValidName(lowerName)) { 308 ec = INVALID_CHARACTER_ERR; 309 return 0; 310 } 311 return HTMLElementFactory::createHTMLElement(AtomicString(lowerName), this, 0, false); 301 312 } 302 313 -
trunk/WebCore/html/HTMLDocument.h
r24146 r24935 72 72 virtual bool childAllowed(Node*); 73 73 74 virtual PassRefPtr<Element> createElement(const String& tagName, ExceptionCode&); 75 74 76 virtual void determineParseMode(const String&); 75 77
Note: See TracChangeset
for help on using the changeset viewer.