Skip to content

Introduce ObjectModel namespace for elements within CSSOM #1545

@JakeQZ

Description

@JakeQZ

Following from the discussion in #1542...

Refs:

We can move all classes/interfaces that represent CSS content into an additional root-level namespace in the package, Sabberworm\CSS\ObjectModel. This will help separate the content classes from the settings/parsing/rendering classes. While doing so, we can rename some to more accurately describe what they represent, according to the formal grammar. The use of class_alias() will allow the renaming/moving of classes without a breaking change.

Current proposed move/renames are as follows:

This is not yet a complete list. This OP is a live document and can be edited and added to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorFor PRs that refactor code without changing functionality

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions