Changeset 21651 in webkit
- Timestamp:
- May 22, 2007, 4:47:07 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r21649 r21651 1 2007-05-22 Darin Adler <darin@apple.com> 2 3 Reviewed by Geoff. 4 5 - test for <rdar://problem/5215830> REGRESSION: ebay.com layout is wrong 6 7 * fast/dom/iframe-document.html: Updated test to expect no document property. 8 * fast/dom/iframe-document-expected.txt: Updated. 9 10 * fast/forms/focus2.html: Changed test to use ownerDocument instead of document. 11 1 12 2007-05-22 Adele Peterson <adele@apple.com> 2 13 -
trunk/LayoutTests/fast/dom/iframe-document-expected.txt
r20972 r21651 1 This tests the document property on an HTMLIFrameElement. Internet Explorer and Safari have a document property on all elements that gives the document the element is in. Old versions of Safari overrode thison iframe elements to return the document inside the iframe, which created an incompatibility with at least on SAP application because it doesn't match the behavior of other browsers.1 This tests the document property on an HTMLIFrameElement. Internet Explorer has a document property on all elements that gives the document the element is in. Old versions of Safari had both this and another property on iframe elements to return the document inside the iframe, which created an incompatibility with at least on SAP application because it doesn't match the behavior of other browsers. 2 2 3 TEST PASSED: The document property is returning the document the iframe element is in.3 TEST PASSED: The frame has no document property. 4 4 5 5 -
trunk/LayoutTests/fast/dom/iframe-document.html
r20972 r21651 6 6 var result; 7 7 if (!document.getElementById('frame').document) 8 result = "TEST PASSED: The frame has no document property , so this is probably not IE or Safari.";8 result = "TEST PASSED: The frame has no document property."; 9 9 else if (document == document.getElementById('frame').document) 10 result = "TEST PASSED: The document property is returning the document the iframe element is in.";10 result = "TEST FAILED: The document property is returning the document the iframe element is in."; 11 11 else 12 12 result = "TEST FAILED: The document property is returning a document other than the one the iframe element is in, probably the document inside the frame."; … … 17 17 <body onload="test()"> 18 18 <p>This tests the document property on an HTMLIFrameElement. 19 Internet Explorer and Safari have a document property on all elements that gives the document the element is in. 20 Old versions of Safari overrode this on iframe elements to return the document inside the iframe, which created an incompatibility 21 with at least on SAP application because it doesn't match the behavior of other browsers.</p> 19 Internet Explorer has a document property on all elements that gives the document the element is in. 20 Old versions of Safari had both this and another property on iframe elements to return the document 21 inside the iframe, which created an incompatibility with at least on SAP application because it 22 doesn't match the behavior of other browsers.</p> 22 23 <p id="result">TEST NOT RUN</p> 23 24 <iframe src="data:text/html,iframe contents" id="frame"></iframe> -
trunk/LayoutTests/fast/forms/focus2.html
r21546 r21651 80 80 // Form elements 81 81 for (var i = 0; i < inputTypes.length; ++i) { //> 82 var input = parentElement. document.createElement('input');82 var input = parentElement.ownerDocument.createElement('input'); 83 83 input.type = inputTypes[i]; 84 84 addEventListeners(input); … … 87 87 88 88 // Textarea 89 var textarea = parentElement. document.createElement('textarea');89 var textarea = parentElement.ownerDocument.createElement('textarea'); 90 90 addEventListeners(textarea); 91 91 parentElement.appendChild(textarea); 92 92 93 93 // Contenteditable 94 var div = parentElement. document.createElement('div');94 var div = parentElement.ownerDocument.createElement('div'); 95 95 div.contentEditable = true; 96 96 div.style.border = "1px solid black"; … … 99 99 100 100 // Anchor 101 var anchor = parentElement. document.createElement('a');101 var anchor = parentElement.ownerDocument.createElement('a'); 102 102 anchor.innerHTML = "anchor"; 103 103 anchor.href = "javascript:"; -
trunk/WebCore/ChangeLog
r21650 r21651 1 2007-05-22 Darin Adler <darin@apple.com> 2 3 Reviewed by Geoff. 4 5 - fix <rdar://problem/5215830> REGRESSION: ebay.com layout is wrong 6 7 The code on ebay was looking for the "document" property on a iframe. 8 We changed that to be the ownerDocument rather than the contentDocument, 9 which was not what ebay was expecting. The best fix seems to be removing 10 the document property altogether. 11 12 Test: fast/dom/iframe-document.html 13 14 * bindings/js/kjs_html.h: Remove ElementDocument. 15 * bindings/js/kjs_html.cpp: (KJS::JSHTMLElement::getValueProperty): Ditto. 16 1 17 2007-05-22 Adele Peterson <adele@apple.com> 2 18 -
trunk/WebCore/bindings/js/kjs_html.cpp
r21633 r21651 465 465 outerHTML KJS::JSHTMLElement::ElementOuterHTML DontDelete 466 466 outerText KJS::JSHTMLElement::ElementOuterText DontDelete 467 document KJS::JSHTMLElement::ElementDocument DontDelete|ReadOnly468 467 # IE extension 469 468 children KJS::JSHTMLElement::ElementChildren DontDelete|ReadOnly … … 696 695 case ElementOuterText: 697 696 return jsString(element.outerText()); 698 case ElementDocument:699 return toJS(exec,element.ownerDocument());700 697 case ElementChildren: 701 698 return getHTMLCollection(exec, element.children().get()); -
trunk/WebCore/bindings/js/kjs_html.h
r21633 r21651 102 102 GetContext, 103 103 ElementInnerHTML, ElementId, ElementDir, ElementLang, 104 ElementClassName, ElementInnerText, Element Document, ElementChildren, ElementContentEditable,104 ElementClassName, ElementInnerText, ElementChildren, ElementContentEditable, 105 105 ElementIsContentEditable, ElementOuterHTML, ElementOuterText 106 106 }; -
trunk/WebCore/page/Chrome.h
r21650 r21651 1 1 // -*- mode: c++; c-basic-offset: 4 -*- 2 2 /* 3 * Copyright (C) 2006 -2007 Apple Inc.3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 4 4 * 5 5 * This library is free software; you can redistribute it and/or … … 107 107 void focusNSView(NSView*); 108 108 #endif 109 109 110 private: 110 111 111 Page* m_page; 112 112 ChromeClient* m_client; -
trunk/WebKit/ChangeLog
r21647 r21651 1 2007-05-22 Darin Adler <darin@apple.com> 2 3 Reviewed by Geoff. 4 5 * WebInspector/webInspector/treeoutline.js: Use ownerDocument instead of non-standard 6 document property. 7 1 8 2007-05-22 Adele Peterson <adele@apple.com> 2 9 -
trunk/WebKit/WebInspector/webInspector/treeoutline.js
r21007 r21651 304 304 this._listItemNode.parentNode.removeChild(this._listItemNode); 305 305 306 this._listItemNode = this.treeOutline._childrenListNode. document.createElement("li");306 this._listItemNode = this.treeOutline._childrenListNode.ownerDocument.createElement("li"); 307 307 this._listItemNode.treeElement = this; 308 308 this._listItemNode.innerHTML = this.title; … … 416 416 this.children = []; 417 417 418 this._childrenListNode = this.treeOutline._childrenListNode. document.createElement("ol");418 this._childrenListNode = this.treeOutline._childrenListNode.ownerDocument.createElement("ol"); 419 419 this._childrenListNode.parentTreeElement = this; 420 420 this._childrenListNode.addStyleClass("children");
Note:
See TracChangeset
for help on using the changeset viewer.