Browse Source

{attr,prop}at:{,put:} in class doc

Herbert Vojčík 8 years ago
parent
commit
6b8437713b
2 changed files with 5 additions and 0 deletions
  1. 0 0
      src/DOMite.js
  2. 5 0
      src/DOMite.st

File diff suppressed because it is too large
+ 0 - 0
src/DOMite.js


+ 5 - 0
src/DOMite.st

@@ -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:

Some files were not shown because too many files changed in this diff