|
@@ -32,6 +32,11 @@ Manipulation API:
|
|
|
- `aDomite resetContents` deletes contents of the wrapped element.
|
|
|
- `aDomite cutUpTo: anotherDomite` removes contents between the two cursors (or up to the end of the receiver) and returns it collected in a wrapped DocumentFragment (IOW, you can `anotherPlace << theResult` to move the contents in the specified range).
|
|
|
|
|
|
+ - `aDomite attrAt: aString` returns attribute of the wrapped element or nil.
|
|
|
+ - `aDomite attrAt: aString put: anotherString` sets an attribute of the wrapped element.
|
|
|
+ - `aDomite propAt: aString` returns JS property of the wrapped element or nil.
|
|
|
+ - `aDomite propAt: aString put: anObject` sets JS property of the wrapped element.
|
|
|
+
|
|
|
Cursor moving API:
|
|
|
|
|
|
Take this sample HTML, where `[n]` are just markers, not real content:
|