diff --git a/README.md b/README.md index d7de893..debed07 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ Warning: Users of this library are responsible for sanitizing content. - [Extending](#extending)⁣ - [Performance](#performance)⁣ - Migrating (`docs/`) - - [5.0 to 5.1](./docs/migrating-from-050000-050100.md) - - [4.x to 5.0](#migrating-from-4x-to-50)⁣ + - [5.0 to 5.1](https://github.com/8fold/php-html-builder/blob/main/docs/migrating-from-050000-050100.md) + - [4.x to 5.0](https://github.com/8fold/php-html-builder/blob/main/docs/migrating-from-04x-050000.md)⁣ - [Details](#details) - [Other](#other)⁣ diff --git a/docs/migrating-from-04x-050000.md b/docs/migrating-from-04x-050000.md index 684aec6..c69493c 100644 --- a/docs/migrating-from-04x-050000.md +++ b/docs/migrating-from-04x-050000.md @@ -7,13 +7,12 @@ - [Text controls](#text-controls-containing-div) add a containing `div` element - [All form controls have](#normalized-form-control-property-methods) `containerProps()`, `labelProps()`, and `inputProps()`; `FieldSet::labelProps()` targets the `legend` element - `id()` is available on `TextInput`, `EmailInput`, `Password`, `TextArea`, and `Select`; allowing you to override the default `id` based on `name` - - Updated or fixed: - [`PropertyInterface`](https://github.com/8fold/php-html-builder/blob/main/src/PropertyInterface.php) extends PHP's `Stringable`; add `public function __toString(): string` alongside `prop()` and `props()`. - `Select` [`radio()` and `checkbox()` IDs](#radio-and-checkbox-ids) use `-option-` instead of `-` - - `warningMessage` accessibility improved for each form control; `Fieldset` renders one warning for the group and [does not inspect child elements](#fieldset-does-not-inspect-children) + - `warningMessage` accessibility improved for each form control; `Fieldset` renders one warning for the group and [does not inspect child elements](#fieldset-does-not-inspect-child-elements) - Deprecated: - - [`wrapperProps()` on form controls](#wrapper-on-form-controls) + - [`wrapperProps()` on form controls](#wrapperprops-on-form-controls) - Deleted: None ## New @@ -56,7 +55,7 @@ Native HTML parsing normalizes CR and CRLF line endings to LF; browsers apply th `Select` defaults to a single dropdown. -```php +```html