domFramework (dfw)
A framework that: Is global free. Is creating the objects out of the HTML document directly and from the ground up! Objects that are directly accessible where and whenever needed. Unlike the traditional way of creating a website, there aren't any use cases here for the; ❌ '*.querySelector' , ❌ '*.getElementsByClassName' , ❌ '*.getElementById' , STORY History: The History behind this framework is…
The domFramework, known as dfw, is a global, free framework that creates objects directly from the HTML document. It distinguishes itself from traditional methods by offering access to elements using the getElemsByDatasetName function, which eliminates the need for methods like getElementsByClassName and getElementById. This framework aims to reduce the codebase size by providing a more efficient way to handle elements, regardless of their tag name.
The development of domFramework began as an update to the author's personal website, with the goal of creating a reusable class. The name was initially vanillaFramework, but it was eventually shortened to domFramework due to its vanilla JavaScript nature and the more concise nature of the name.
The framework is still in development but has reached a stage where it is worth releasing. It follows a logical directory structure, maintains small file sizes, and employs object-oriented programming with modular design. The features include creating objects directly from the HTML document, direct access to these objects, a visualViewport-based resizer, an InfoPane for device information, custom elements, and its own style directory.
The to-do list for the framework includes updating the documentation, creating a built-in history handler, implementing a built-in navigation handler, integrating a tooltipModule, and updating the demo site. The author emphasizes that domFramework is built entirely using vanilla JavaScript and does not incorporate any AI.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.