Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HtmlDocument::insertBefore as well as HtmlDocument::insertAfter and emit an event upon assembly #122

Merged
merged 3 commits into from Jun 2, 2023

Conversation

raviks789
Copy link
Contributor

Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add tests

src/HtmlDocument.php Show resolved Hide resolved
src/HtmlDocument.php Outdated Show resolved Hide resolved
src/HtmlDocument.php Outdated Show resolved Hide resolved
src/HtmlDocument.php Outdated Show resolved Hide resolved
src/HtmlDocument.php Outdated Show resolved Hide resolved
This provides an option to add html elements or attributes (especially in the case of decorators) to the `HtmlDocument` while
it is being assembled.
@raviks789 raviks789 force-pushed the feature/improve-html-document-class branch 4 times, most recently from 2fcdf0a to 8bf7b72 Compare June 2, 2023 07:47
src/HtmlDocument.php Outdated Show resolved Hide resolved
The `HtmlDocument::class` should have an option to insert an Html element after or before
a certain html element.
@raviks789 raviks789 force-pushed the feature/improve-html-document-class branch from 8bf7b72 to 2cf15bf Compare June 2, 2023 10:21
@raviks789 raviks789 requested a review from nilmerg June 2, 2023 10:21
@nilmerg nilmerg added this to the v0.8.0 milestone Jun 2, 2023
@nilmerg nilmerg merged commit 8891477 into main Jun 2, 2023
13 checks passed
@nilmerg nilmerg deleted the feature/improve-html-document-class branch June 2, 2023 10:25
@nilmerg nilmerg added the enhancement New feature or request label Jun 2, 2023
@nilmerg nilmerg changed the title Improve HtmlDocument class Add HtmlDocument::insertBefore as well as HtmlDocument::insertAfter and emit an event upon assembly Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants