Skip to content
Permalink
Browse files

Add support for the contenteditable attribute

  • Loading branch information...
timmywil
timmywil committed May 5, 2011
1 parent 5097e6d commit cccf9ad91d8b6626e1e20bd267c9cd0b6223f15c
Showing with 8 additions and 3 deletions.
  1. +2 −1 src/attributes.js
  2. +6 −2 test/unit/attributes.js
@@ -414,7 +414,8 @@ jQuery.extend({
rowspan: "rowSpan",
colspan: "colSpan",
usemap: "useMap",
frameborder: "frameBorder"
frameborder: "frameBorder",
contenteditable: "contentEditable"
},

prop: function( elem, name, value ) {
@@ -22,7 +22,8 @@ test("jQuery.attrFix/jQuery.propFix integrity test", function() {
rowspan: "rowSpan",
colspan: "colSpan",
usemap: "useMap",
frameborder: "frameBorder"
frameborder: "frameBorder",
contenteditable: "contentEditable"
},
propsShouldBe;

@@ -143,7 +144,7 @@ test("attr(Hash)", function() {
});

test("attr(String, Object)", function() {
expect(56);
expect(57);

var div = jQuery("div").attr("foo", "bar"),
fail = false;
@@ -215,6 +216,9 @@ test("attr(String, Object)", function() {
equals( $text.attr("aria-disabled", false).attr("aria-disabled"), "false", "Setting aria attributes are not affected by boolean settings");
$text.removeData("something").removeData("another").removeAttr("aria-disabled");

jQuery("#foo").attr("contenteditable", true);
equals( jQuery("#foo").attr("contenteditable"), "true", "Enumerated attributes are set properly" );

var attributeNode = document.createAttribute("irrelevant"),
commentNode = document.createComment("some comment"),
textNode = document.createTextNode("some text");

0 comments on commit cccf9ad

Please sign in to comment.
You can’t perform that action at this time.