pHtml Status
Next
- insertCodeBefore & insertCodeAfter
Latest accomplishments
- Php code can be added to a tag declartion, without causing attribute mumbo jumbo problems.
Documentation needed
DomNode custom Properties
- children
- hideOwnTag
-
$node->attributeName (uses magic __get)
- @todo
phtml as alias for ownerDocument
- ...
DomNode custom methods
- addHiddenInput
-
__toString
DomDocument custom methods
- adPhpToTag($node, $php)
- xpath
- phpPlaceholder
- setDynamicAttribute($code)
- insertCodeBefore($node, $code);
- insertCodeAfter($node, $code);
DomNode builtin properties
DomNode builtin methods
- hasAttribute, getAttribute, setAttribute
DomDocument builtin methods
Stuff
- My test coverage is not very good.
- all
foreach ($node->childNodes) should be replaced with foreach($node->children) (probably)
- Extensible property-getter system, so I don't have to keep using
if/else statements inside __get.
-
Compiler is not used & should be removed. (or is it PHPParser to remove?)
- Branch naming (make a
v0.1)
- change to
pHtml from PHTML class name
- when
innerHtml/innerText is used improperly, throw exception & inform correct property capitalizatin to use.