Changeset 77985 in webkit
- Timestamp:
- Feb 8, 2011 3:59:30 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r77982 r77985 1 2011-02-08 Andy Estes <aestes@apple.com> 2 3 Reviewed by Darin Adler. 4 5 REGRESSION (r76301): 'plaintext-only' must be a supported contentEditable mode. 6 https://bugs.webkit.org/show_bug.cgi?id=54041 7 8 * fast/dom/HTMLElement/set-value-caseinsensitive-expected.txt: 9 * fast/dom/HTMLElement/set-value-caseinsensitive.html: 10 1 11 2011-02-08 Martin Robinson <mrobinson@igalia.com> 2 12 -
trunk/LayoutTests/fast/dom/HTMLElement/set-value-caseinsensitive-expected.txt
r76528 r77985 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 … … 22 23 PASS document.getElementById("p2").isContentEditable is true 23 24 PASS window.getComputedStyle(p2, "").getPropertyValue("-webkit-user-modify") is "read-write" 25 PASS document.getElementById("div3").hasAttribute("contentEditable") is true 26 PASS document.getElementById("div3").contentEditable is "plaintext-only" 27 PASS document.getElementById("div3").isContentEditable is true 28 PASS window.getComputedStyle(div3, "").getPropertyValue("-webkit-user-modify") is "read-write-plaintext-only" 29 PASS document.getElementById("p3").hasAttribute("contentEditable") is false 30 PASS document.getElementById("p3").contentEditable is "inherit" 31 PASS document.getElementById("p3").isContentEditable is true 32 PASS window.getComputedStyle(p3, "").getPropertyValue("-webkit-user-modify") is "read-write-plaintext-only" 24 33 25 34 PASS successfullyParsed is true -
trunk/LayoutTests/fast/dom/HTMLElement/set-value-caseinsensitive.html
r76528 r77985 14 14 <p id="p2" contenteditable="false"></p> 15 15 </div> 16 <div id="div3" contenteditable="true"> 17 <p id="p3" contenteditable="false"></p> 18 </div> 16 19 <script> 17 20 description('When contentEditable is set to a new value, the new value can be case-insensitive.') … … 20 23 document.getElementById("p1").contentEditable = "faLSE"; 21 24 document.getElementById("p2").contentEditable = "inHERIT"; 25 document.getElementById("div3").contentEditable = "PlainText-Only" 26 document.getElementById("p3").contentEditable = "Inherit" 22 27 23 28 shouldBe('document.getElementById("div1").getAttribute("contentEditable")','"true"'); … … 37 42 shouldBe('window.getComputedStyle(p2, "").getPropertyValue("-webkit-user-modify")', '"read-write"'); 38 43 44 shouldBe('document.getElementById("div3").hasAttribute("contentEditable")','true'); 45 shouldBe('document.getElementById("div3").contentEditable', '"plaintext-only"'); 46 shouldBe('document.getElementById("div3").isContentEditable', 'true'); 47 shouldBe('window.getComputedStyle(div3, "").getPropertyValue("-webkit-user-modify")', '"read-write-plaintext-only"'); 48 49 shouldBe('document.getElementById("p3").hasAttribute("contentEditable")','false'); 50 shouldBe('document.getElementById("p3").contentEditable', '"inherit"'); 51 shouldBe('document.getElementById("p3").isContentEditable', 'true'); 52 shouldBe('window.getComputedStyle(p3, "").getPropertyValue("-webkit-user-modify")', '"read-write-plaintext-only"'); 53 39 54 document.getElementById("div1").style.display= 'none'; 40 55 document.getElementById("p1").style.display= 'none'; 41 56 document.getElementById("div2").style.display= 'none'; 57 document.getElementById("div3").style.display= 'none'; 58 42 59 43 60 window.successfullyParsed = true; -
trunk/Source/WebCore/ChangeLog
r77984 r77985 1 2011-02-08 Andy Estes <aestes@apple.com> 2 3 Reviewed by Darin Adler. 4 5 REGRESSION (r76301): 'plaintext-only' must be a supported contentEditable mode. 6 https://bugs.webkit.org/show_bug.cgi?id=54041 7 8 * html/HTMLElement.cpp: 9 (WebCore::HTMLElement::setContentEditable): Setting the contentEditable 10 attribute to 'plaintext-only' should not throw an exception. 11 1 12 2011-02-08 Dan Bernstein <mitz@apple.com> 2 13 -
trunk/Source/WebCore/html/HTMLElement.cpp
r76301 r77985 736 736 else if (equalIgnoringCase(enabled, "false")) 737 737 setAttribute(contenteditableAttr, "false", ec); 738 else if (equalIgnoringCase(enabled, "plaintext-only")) 739 setAttribute(contenteditableAttr, "plaintext-only"); 738 740 else if (equalIgnoringCase(enabled, "inherit")) 739 741 removeAttribute(contenteditableAttr, ec);
Note: See TracChangeset
for help on using the changeset viewer.