Following some stats of my life at GitHub:
1stthomas / ht7-html Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Would the benefit really be greater than the investment?
In HTML attributes are nodes. But here, the iterator does not iterate over the attributes.
Atm the transformation of the model data into the view is done by the view class. Should this not been done by the controller?
AbstractController
, AbstractModel
and AbstractView
.
New method to determine the several attributes.
If keys 'picture', 'figcaption' and/or 'figure' are set, empty or the found array. Otherwise the attributes array belongs to the figure.
Todo:
Ht7\Html\Widgets\Modelable
- set/get dataHt7\Html\Node
(abstract class) - set/get contentSometimes variables can be omitted by e.g. placing the options directly into the method call without loosing too much readability.
Several classes need to implement the JsonSerializable
interface. But the Text
class needs to be handled by the NodeList
.
Where it is possible tests must integrate mocks and such.
HTML structure with placeholders, which will be replaced.
The Tag class need a method, to parse a HTML string and create a tree of Tag and Attribute instances. This should be implemented by using the DOMDocument and its anchestor classes.
Implementation of a callback node which must be able to run global functions and methods of classes and instances. This needs:
Callback
class extends \Ht7\Html\Node
\Ht7\Html\Translators\ImporterHt7
's createContentElement()
Wrong naming, let's fix it.
Atm most of the exception messages are not going through the translator class.
Chapters:
\Ht7\Html\Widgets\AbstractView
uses getItemList
to provide the \Ht7\Html\Lists\NodeList
. Let's change the method name into getNodeList
.
For some tag groups it would be over engeneered to implement them with MVC architecture. They must be handled by a single class. These tag groups would be:
A widget with a wrapper markup and items, which must be replaced on rendering.
Test traits according to https://phpunit.readthedocs.io/en/9.2/test-doubles.html#mocking-traits-and-abstract-classes.
Let's fix following issues:
Ht7\Html\Translators\ImporterHt7
E.g. to register the \Ht7\Html\Tag
class which the \Ht7\Html\Utilities\ImporterArray
has to use.
Probably not the correct paths in the composer commands defined in composer.json
.
Test abstract classes according to https://phpunit.readthedocs.io/en/9.2/test-doubles.html#mocking-traits-and-abstract-classes.
Changing this needs to change also the Text
class. Instead of get-/setText()
get-/setContent()
must be used.
Most of these datatype exceptions still use the \InvalidArgumentException
.
The AttributeList
class needs to be expanded by a merge
method. This method must merge the attributes of the AttributeList instances.
100% unit test coverage needed.
Atm not only the importer does import, but also the Ht7\Html\Lists\NodeList
class. Let's change this: Only the importers have to do imports, resp. creating the nodes etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.