You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library adds the HTML5 specification to PHP and is fully compatible with `DOM\HTMLDocument`. You can create an `Anchor()` object and append it to any `DOM\Document`.
35
+
This library adds the HTML5 specification to PHP and is fully compatible with `DOM\HTMLDocument`. You can now instantiate an `Anchor` without passing a document.
36
36
37
37
```php
38
-
use Html\Delegator\HTMLDocumentDelegator as HTMLDocument;
Copy file name to clipboardExpand all lines: docs/frameworks/symfony.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,13 @@ There are several different ways one can use this library in Symfony. One can:
8
8
9
9
## Using the HTML5 Element PHP classes and Enums
10
10
11
-
This library adds the HTML5 specification to PHP and is fully compatible with `DOM\HTMLDocument`. You can create an `Anchor()` object and append it to any `DOM\Document`.
11
+
This library adds the HTML5 specification to PHP and is fully compatible with `DOM\HTMLDocument`. You can now instantiate an `Anchor` without passing a document.
12
12
13
13
```php
14
-
use Html\Delegator\HTMLDocumentDelegator as HTMLDocument;
In the example above, we're passing an instance of the HTMLDocumentDelegator to the create method, which we make use of three new methods HTMLElementDelegator `create()`,`setAttributes()` and `__toString()` as well as BackedEnums for static values.
29
+
In the example above, we instantiate the element directly and make use of `setAttributes()` and `__toString()` as well as BackedEnums for static values.
0 commit comments