diff --git a/.gitignore b/.gitignore index 82dac7f..9628168 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /vendor /composer.lock -/.phpunit.result.cache -/coverage \ No newline at end of file +/.phpunit.result.cache \ No newline at end of file diff --git a/LICENSE b/LICENSE index 67d2315..bbefa34 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Joby's PHP Toolbox: https://code.byjoby.com/php-toolbox/ +Joby's HTML Object Strings: https://code.byjoby.com/html-object-strings/ Copyright (c) 2024 Joby Elliott Permission is hereby granted, free of charge, to any person obtaining a copy of diff --git a/README.md b/README.md index d04ada8..5d3bd4f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -# byjoby/html-object-strings - -[![PHPStan](https://github.com/jobyone/html-object-strings/actions/workflows/phpstan.yaml/badge.svg)](https://github.com/jobyone/html-object-strings/actions/workflows/phpstan.yaml) -[![PHPUnit](https://github.com/jobyone/html-object-strings/actions/workflows/phpunit.yaml/badge.svg)](https://github.com/jobyone/html-object-strings/actions/workflows/phpunit.yaml) +# Joby's HTML Object Strings A library used for building and manipulating HTML tags, fragments, and documents through an object-oriented interface. + +## Development status + +**Super under development** do not use in production! \ No newline at end of file diff --git a/composer.json b/composer.json index 477dbc3..8859155 100644 --- a/composer.json +++ b/composer.json @@ -2,36 +2,30 @@ "name": "joby/html-object-strings", "description": "Abstraction layer for constructing arbitrary HTML tags and documents in PHP", "type": "library", - "require": { - "php": "~8.1", - "myclabs/deep-copy": "^1" - }, "license": "MIT", - "authors": [ - { - "name": "Joby Elliott", - "email": "joby@byjoby.com" - } - ], - "minimum-stability": "dev", - "prefer-stable": true, "autoload": { "psr-4": { - "ByJoby\\HTML\\": "src/" + "Joby\\HTML\\": "src/" } }, "autoload-dev": { "psr-4": { - "ByJoby\\HTML\\": "tests/" + "Joby\\HTML\\": "tests/" } }, - "scripts": { - "test": "phpunit", - "stan": "phpstan" + "authors": [ + { + "name": "Joby Elliott", + "email": "code@byjoby.com" + } + ], + "require": { + "php": "~8.1", + "myclabs/deep-copy": "^1" }, "require-dev": { - "mustangostang/spyc": "^0.6.3", "phpunit/phpunit": "^11.2", - "phpstan/phpstan": "^1.11" + "phpstan/phpstan": "^1.11", + "mustangostang/spyc": "^0.6.3" } } diff --git a/src/AbstractParser.php b/src/AbstractParser.php index 34b73a7..ebfb6fa 100644 --- a/src/AbstractParser.php +++ b/src/AbstractParser.php @@ -1,19 +1,42 @@ HTML element indicates that the enclosed HTML provides contact diff --git a/src/Html5/ContentSectioningTags/ArticleTag.php b/src/Html5/ContentSectioningTags/ArticleTag.php index dbab907..c1838eb 100644 --- a/src/Html5/ContentSectioningTags/ArticleTag.php +++ b/src/Html5/ContentSectioningTags/ArticleTag.php @@ -1,8 +1,31 @@ HTML element represents a self-contained composition in a diff --git a/src/Html5/ContentSectioningTags/AsideTag.php b/src/Html5/ContentSectioningTags/AsideTag.php index f6c78f5..7b69798 100644 --- a/src/Html5/ContentSectioningTags/AsideTag.php +++ b/src/Html5/ContentSectioningTags/AsideTag.php @@ -1,8 +1,31 @@ HTML element represents a portion of a document whose content is diff --git a/src/Html5/ContentSectioningTags/FooterTag.php b/src/Html5/ContentSectioningTags/FooterTag.php index ad4bddf..3136f9a 100644 --- a/src/Html5/ContentSectioningTags/FooterTag.php +++ b/src/Html5/ContentSectioningTags/FooterTag.php @@ -1,8 +1,31 @@ HTML element represents a footer for its nearest ancestor diff --git a/src/Html5/ContentSectioningTags/H1Tag.php b/src/Html5/ContentSectioningTags/H1Tag.php index 4887d24..196433d 100644 --- a/src/Html5/ContentSectioningTags/H1Tag.php +++ b/src/Html5/ContentSectioningTags/H1Tag.php @@ -1,6 +1,29 @@ to
HTML elements represent six levels of section headings.

diff --git a/src/Html5/ContentSectioningTags/H2Tag.php b/src/Html5/ContentSectioningTags/H2Tag.php index 2e37ecc..6f613f0 100644 --- a/src/Html5/ContentSectioningTags/H2Tag.php +++ b/src/Html5/ContentSectioningTags/H2Tag.php @@ -1,6 +1,29 @@ to

HTML elements represent six levels of section headings.

diff --git a/src/Html5/ContentSectioningTags/H3Tag.php b/src/Html5/ContentSectioningTags/H3Tag.php index 5cd6247..097af9e 100644 --- a/src/Html5/ContentSectioningTags/H3Tag.php +++ b/src/Html5/ContentSectioningTags/H3Tag.php @@ -1,6 +1,29 @@ to

HTML elements represent six levels of section headings.

diff --git a/src/Html5/ContentSectioningTags/H4Tag.php b/src/Html5/ContentSectioningTags/H4Tag.php index 2c1c21b..bfd1979 100644 --- a/src/Html5/ContentSectioningTags/H4Tag.php +++ b/src/Html5/ContentSectioningTags/H4Tag.php @@ -1,6 +1,29 @@ to

HTML elements represent six levels of section headings.

diff --git a/src/Html5/ContentSectioningTags/H5Tag.php b/src/Html5/ContentSectioningTags/H5Tag.php index 4f99412..f0f368f 100644 --- a/src/Html5/ContentSectioningTags/H5Tag.php +++ b/src/Html5/ContentSectioningTags/H5Tag.php @@ -1,6 +1,29 @@ to

HTML elements represent six levels of section headings.

diff --git a/src/Html5/ContentSectioningTags/H6Tag.php b/src/Html5/ContentSectioningTags/H6Tag.php index f4cf56a..942d35b 100644 --- a/src/Html5/ContentSectioningTags/H6Tag.php +++ b/src/Html5/ContentSectioningTags/H6Tag.php @@ -1,6 +1,29 @@ to

HTML elements represent six levels of section headings.

diff --git a/src/Html5/ContentSectioningTags/HeaderTag.php b/src/Html5/ContentSectioningTags/HeaderTag.php index 1e05d91..76dde80 100644 --- a/src/Html5/ContentSectioningTags/HeaderTag.php +++ b/src/Html5/ContentSectioningTags/HeaderTag.php @@ -1,8 +1,31 @@ HTML element represents introductory content, typically a group diff --git a/src/Html5/ContentSectioningTags/MainTag.php b/src/Html5/ContentSectioningTags/MainTag.php index d26ef53..5508ff7 100644 --- a/src/Html5/ContentSectioningTags/MainTag.php +++ b/src/Html5/ContentSectioningTags/MainTag.php @@ -1,8 +1,31 @@ HTML element represents the dominant content of the of a diff --git a/src/Html5/ContentSectioningTags/NavTag.php b/src/Html5/ContentSectioningTags/NavTag.php index 2cdbe54..ebcca60 100644 --- a/src/Html5/ContentSectioningTags/NavTag.php +++ b/src/Html5/ContentSectioningTags/NavTag.php @@ -1,8 +1,31 @@ HTML element represents a section of a page whose purpose is to diff --git a/src/Html5/ContentSectioningTags/SearchTag.php b/src/Html5/ContentSectioningTags/SearchTag.php index 1e2c63a..394ed83 100644 --- a/src/Html5/ContentSectioningTags/SearchTag.php +++ b/src/Html5/ContentSectioningTags/SearchTag.php @@ -1,8 +1,31 @@ HTML element is a container representing the parts of the diff --git a/src/Html5/ContentSectioningTags/SectionTag.php b/src/Html5/ContentSectioningTags/SectionTag.php index 7cb7211..1163078 100644 --- a/src/Html5/ContentSectioningTags/SectionTag.php +++ b/src/Html5/ContentSectioningTags/SectionTag.php @@ -1,8 +1,31 @@ HTML element represents a generic standalone section of a diff --git a/src/Html5/DocumentTags/BodyTag.php b/src/Html5/DocumentTags/BodyTag.php index 31aeaef..a8bd38e 100644 --- a/src/Html5/DocumentTags/BodyTag.php +++ b/src/Html5/DocumentTags/BodyTag.php @@ -1,9 +1,32 @@ HTML element represents the content of an HTML document. There can diff --git a/src/Html5/DocumentTags/Doctype.php b/src/Html5/DocumentTags/Doctype.php index 43abada..5fe37f0 100644 --- a/src/Html5/DocumentTags/Doctype.php +++ b/src/Html5/DocumentTags/Doctype.php @@ -1,9 +1,32 @@ " preamble found at the diff --git a/src/Html5/DocumentTags/HeadTag.php b/src/Html5/DocumentTags/HeadTag.php index 864c780..f938668 100644 --- a/src/Html5/DocumentTags/HeadTag.php +++ b/src/Html5/DocumentTags/HeadTag.php @@ -1,12 +1,35 @@ HTML element contains machine-readable information (metadata) diff --git a/src/Html5/DocumentTags/HtmlTag.php b/src/Html5/DocumentTags/HtmlTag.php index d32a3f7..2b758eb 100644 --- a/src/Html5/DocumentTags/HtmlTag.php +++ b/src/Html5/DocumentTags/HtmlTag.php @@ -1,13 +1,36 @@ HTML element represents the root (top-level element) of an HTML diff --git a/src/Html5/DocumentTags/TitleTag.php b/src/Html5/DocumentTags/TitleTag.php index 0b7424d..87f0b7a 100644 --- a/src/Html5/DocumentTags/TitleTag.php +++ b/src/Html5/DocumentTags/TitleTag.php @@ -1,9 +1,32 @@ */ protected $tag_namespaces = [ - '\\ByJoby\\HTML\\Html5\\ContentSectioningTags\\', - '\\ByJoby\\HTML\\Html5\\DocumentTags\\', - '\\ByJoby\\HTML\\Html5\\InlineTextSemantics\\', - '\\ByJoby\\HTML\\Html5\\Multimedia\\', - '\\ByJoby\\HTML\\Html5\\Tags\\', - '\\ByJoby\\HTML\\Html5\\TextContentTags\\', + '\\Joby\\HTML\\Html5\\ContentSectioningTags\\', + '\\Joby\\HTML\\Html5\\DocumentTags\\', + '\\Joby\\HTML\\Html5\\InlineTextSemantics\\', + '\\Joby\\HTML\\Html5\\Multimedia\\', + '\\Joby\\HTML\\Html5\\Tags\\', + '\\Joby\\HTML\\Html5\\TextContentTags\\', ]; /** @var class-string */ diff --git a/src/Html5/InlineTextSemantics/ATag.php b/src/Html5/InlineTextSemantics/ATag.php index 1b604f7..3d47f8f 100644 --- a/src/Html5/InlineTextSemantics/ATag.php +++ b/src/Html5/InlineTextSemantics/ATag.php @@ -1,14 +1,32 @@ HTML element (or anchor element), with its href attribute, creates a diff --git a/src/Html5/InlineTextSemantics/AbbrTag.php b/src/Html5/InlineTextSemantics/AbbrTag.php index cca2060..84e3b82 100644 --- a/src/Html5/InlineTextSemantics/AbbrTag.php +++ b/src/Html5/InlineTextSemantics/AbbrTag.php @@ -1,8 +1,31 @@ HTML element is used to draw the reader's attention to the element's diff --git a/src/Html5/InlineTextSemantics/BdiTag.php b/src/Html5/InlineTextSemantics/BdiTag.php index f5e13a7..ca8ac64 100644 --- a/src/Html5/InlineTextSemantics/BdiTag.php +++ b/src/Html5/InlineTextSemantics/BdiTag.php @@ -1,8 +1,31 @@ HTML element tells the browser's bidirectional algorithm to treat diff --git a/src/Html5/InlineTextSemantics/BdoTag.php b/src/Html5/InlineTextSemantics/BdoTag.php index fde7679..1635ed9 100644 --- a/src/Html5/InlineTextSemantics/BdoTag.php +++ b/src/Html5/InlineTextSemantics/BdoTag.php @@ -1,8 +1,31 @@ HTML element overrides the current directionality of text, so that diff --git a/src/Html5/InlineTextSemantics/BrTag.php b/src/Html5/InlineTextSemantics/BrTag.php index 1fc1aac..5756cb2 100644 --- a/src/Html5/InlineTextSemantics/BrTag.php +++ b/src/Html5/InlineTextSemantics/BrTag.php @@ -1,8 +1,31 @@ HTML element produces a line break in text (carriage-return). It is diff --git a/src/Html5/InlineTextSemantics/CiteTag.php b/src/Html5/InlineTextSemantics/CiteTag.php index 814809e..cb4fa2d 100644 --- a/src/Html5/InlineTextSemantics/CiteTag.php +++ b/src/Html5/InlineTextSemantics/CiteTag.php @@ -1,8 +1,31 @@ HTML element is used to mark up the title of a cited creative diff --git a/src/Html5/InlineTextSemantics/CodeTag.php b/src/Html5/InlineTextSemantics/CodeTag.php index b0ed844..f702617 100644 --- a/src/Html5/InlineTextSemantics/CodeTag.php +++ b/src/Html5/InlineTextSemantics/CodeTag.php @@ -1,8 +1,31 @@ HTML element displays its contents styled in a fashion intended to diff --git a/src/Html5/InlineTextSemantics/DataTag.php b/src/Html5/InlineTextSemantics/DataTag.php index b094813..b5eb9e5 100644 --- a/src/Html5/InlineTextSemantics/DataTag.php +++ b/src/Html5/InlineTextSemantics/DataTag.php @@ -1,8 +1,31 @@ HTML element marks text that has stress emphasis. The element diff --git a/src/Html5/InlineTextSemantics/ITag.php b/src/Html5/InlineTextSemantics/ITag.php index 08bda76..e4170bc 100644 --- a/src/Html5/InlineTextSemantics/ITag.php +++ b/src/Html5/InlineTextSemantics/ITag.php @@ -1,8 +1,31 @@ HTML element represents a range of text that is set off from the diff --git a/src/Html5/InlineTextSemantics/KbdTag.php b/src/Html5/InlineTextSemantics/KbdTag.php index dfef24a..74d92ca 100644 --- a/src/Html5/InlineTextSemantics/KbdTag.php +++ b/src/Html5/InlineTextSemantics/KbdTag.php @@ -1,8 +1,31 @@ HTML element represents a span of inline text denoting textual user diff --git a/src/Html5/InlineTextSemantics/MarkTag.php b/src/Html5/InlineTextSemantics/MarkTag.php index b8d5dc7..257f9d5 100644 --- a/src/Html5/InlineTextSemantics/MarkTag.php +++ b/src/Html5/InlineTextSemantics/MarkTag.php @@ -1,8 +1,31 @@ HTML element represents text which is marked or highlighted for diff --git a/src/Html5/InlineTextSemantics/QTag.php b/src/Html5/InlineTextSemantics/QTag.php index 1b07d48..407b255 100644 --- a/src/Html5/InlineTextSemantics/QTag.php +++ b/src/Html5/InlineTextSemantics/QTag.php @@ -1,8 +1,31 @@ HTML element is used to provide fall-back parentheses for browsers diff --git a/src/Html5/InlineTextSemantics/RtTag.php b/src/Html5/InlineTextSemantics/RtTag.php index 1d00188..fb37f38 100644 --- a/src/Html5/InlineTextSemantics/RtTag.php +++ b/src/Html5/InlineTextSemantics/RtTag.php @@ -1,8 +1,31 @@ HTML element specifies the ruby text component of a ruby annotation, diff --git a/src/Html5/InlineTextSemantics/RubyTag.php b/src/Html5/InlineTextSemantics/RubyTag.php index 8922f24..c00e2e8 100644 --- a/src/Html5/InlineTextSemantics/RubyTag.php +++ b/src/Html5/InlineTextSemantics/RubyTag.php @@ -1,8 +1,31 @@ HTML element represents small annotations that are rendered above, diff --git a/src/Html5/InlineTextSemantics/STag.php b/src/Html5/InlineTextSemantics/STag.php index 872260a..9791dcc 100644 --- a/src/Html5/InlineTextSemantics/STag.php +++ b/src/Html5/InlineTextSemantics/STag.php @@ -1,8 +1,31 @@ HTML element renders text with a strikethrough, or a line through it. diff --git a/src/Html5/InlineTextSemantics/SampTag.php b/src/Html5/InlineTextSemantics/SampTag.php index 506f896..bcaa2e3 100644 --- a/src/Html5/InlineTextSemantics/SampTag.php +++ b/src/Html5/InlineTextSemantics/SampTag.php @@ -1,8 +1,31 @@ HTML element is used to enclose inline text which represents diff --git a/src/Html5/InlineTextSemantics/SmallTag.php b/src/Html5/InlineTextSemantics/SmallTag.php index c751840..3a5974c 100644 --- a/src/Html5/InlineTextSemantics/SmallTag.php +++ b/src/Html5/InlineTextSemantics/SmallTag.php @@ -1,8 +1,31 @@ HTML element represents side-comments and small print, like diff --git a/src/Html5/InlineTextSemantics/SpanTag.php b/src/Html5/InlineTextSemantics/SpanTag.php index 4951617..7f4f507 100644 --- a/src/Html5/InlineTextSemantics/SpanTag.php +++ b/src/Html5/InlineTextSemantics/SpanTag.php @@ -1,8 +1,31 @@ HTML element is a generic inline container for phrasing content, diff --git a/src/Html5/InlineTextSemantics/StrongTag.php b/src/Html5/InlineTextSemantics/StrongTag.php index dfb039d..3a44153 100644 --- a/src/Html5/InlineTextSemantics/StrongTag.php +++ b/src/Html5/InlineTextSemantics/StrongTag.php @@ -1,8 +1,31 @@ HTML element indicates that its contents have strong importance, diff --git a/src/Html5/InlineTextSemantics/SubTag.php b/src/Html5/InlineTextSemantics/SubTag.php index 3ba99df..650f8db 100644 --- a/src/Html5/InlineTextSemantics/SubTag.php +++ b/src/Html5/InlineTextSemantics/SubTag.php @@ -1,8 +1,31 @@ HTML element specifies inline text which should be displayed as diff --git a/src/Html5/InlineTextSemantics/SupTag.php b/src/Html5/InlineTextSemantics/SupTag.php index e736dfb..60ae65d 100644 --- a/src/Html5/InlineTextSemantics/SupTag.php +++ b/src/Html5/InlineTextSemantics/SupTag.php @@ -1,8 +1,31 @@ HTML element specifies inline text which is to be displayed as diff --git a/src/Html5/InlineTextSemantics/TimeTag.php b/src/Html5/InlineTextSemantics/TimeTag.php index 500ee81..7a4ffd1 100644 --- a/src/Html5/InlineTextSemantics/TimeTag.php +++ b/src/Html5/InlineTextSemantics/TimeTag.php @@ -1,9 +1,32 @@ HTML element represents a specific period in time. It may include diff --git a/src/Html5/InlineTextSemantics/TimeTag/DatetimeValue.php b/src/Html5/InlineTextSemantics/TimeTag/DatetimeValue.php index cb122e1..4448f43 100644 --- a/src/Html5/InlineTextSemantics/TimeTag/DatetimeValue.php +++ b/src/Html5/InlineTextSemantics/TimeTag/DatetimeValue.php @@ -1,8 +1,31 @@ HTML element represents a span of inline text which should be diff --git a/src/Html5/InlineTextSemantics/VarTag.php b/src/Html5/InlineTextSemantics/VarTag.php index e9940e8..1f2112f 100644 --- a/src/Html5/InlineTextSemantics/VarTag.php +++ b/src/Html5/InlineTextSemantics/VarTag.php @@ -1,8 +1,31 @@ HTML element represents the name of a variable in a mathematical diff --git a/src/Html5/InlineTextSemantics/WbrTag.php b/src/Html5/InlineTextSemantics/WbrTag.php index 93a3293..0a3f730 100644 --- a/src/Html5/InlineTextSemantics/WbrTag.php +++ b/src/Html5/InlineTextSemantics/WbrTag.php @@ -1,8 +1,31 @@ HTML element represents a word break opportunity—a position within diff --git a/src/Html5/Multimedia/AbstractPlaybackTag.php b/src/Html5/Multimedia/AbstractPlaybackTag.php index a2e0449..860afb0 100644 --- a/src/Html5/Multimedia/AbstractPlaybackTag.php +++ b/src/Html5/Multimedia/AbstractPlaybackTag.php @@ -1,14 +1,37 @@ setPolygon(...$coords); } - return $this; } /** diff --git a/src/Html5/Multimedia/AreaTag/ShapeValue.php b/src/Html5/Multimedia/AreaTag/ShapeValue.php index 6b57962..cc0341f 100644 --- a/src/Html5/Multimedia/AreaTag/ShapeValue.php +++ b/src/Html5/Multimedia/AreaTag/ShapeValue.php @@ -1,6 +1,29 @@ HTML element is used to embed sound content in documents. It may diff --git a/src/Html5/Multimedia/EmbedTag.php b/src/Html5/Multimedia/EmbedTag.php index 308f5c2..a16355d 100644 --- a/src/Html5/Multimedia/EmbedTag.php +++ b/src/Html5/Multimedia/EmbedTag.php @@ -1,9 +1,32 @@ . diff --git a/src/Html5/Multimedia/ImgTag.php b/src/Html5/Multimedia/ImgTag.php index 1588b22..ab06a01 100644 --- a/src/Html5/Multimedia/ImgTag.php +++ b/src/Html5/Multimedia/ImgTag.php @@ -1,13 +1,36 @@ element allows the grouping of a heading with any secondary diff --git a/src/Html5/Tags/LinkTag.php b/src/Html5/Tags/LinkTag.php index f868efd..fb7118b 100644 --- a/src/Html5/Tags/LinkTag.php +++ b/src/Html5/Tags/LinkTag.php @@ -1,14 +1,37 @@ diff --git a/src/Html5/Tags/LinkTag/ReferrerPolicyValue.php b/src/Html5/Tags/LinkTag/ReferrerPolicyValue.php index 64ce4e2..073ab98 100644 --- a/src/Html5/Tags/LinkTag/ReferrerPolicyValue.php +++ b/src/Html5/Tags/LinkTag/ReferrerPolicyValue.php @@ -1,6 +1,29 @@ HTML element defines a section of HTML to be inserted if a diff --git a/src/Html5/Tags/ScriptTag.php b/src/Html5/Tags/ScriptTag.php index a2ea03e..02eff27 100644 --- a/src/Html5/Tags/ScriptTag.php +++ b/src/Html5/Tags/ScriptTag.php @@ -1,12 +1,35 @@ element indicates the type of script diff --git a/src/Html5/Tags/StyleTag.php b/src/Html5/Tags/StyleTag.php index eae2da8..214132e 100644 --- a/src/Html5/Tags/StyleTag.php +++ b/src/Html5/Tags/StyleTag.php @@ -1,8 +1,31 @@ HTML element provides the description, definition, or value for the diff --git a/src/Html5/TextContentTags/DivTag.php b/src/Html5/TextContentTags/DivTag.php index 112665e..5d5cf3e 100644 --- a/src/Html5/TextContentTags/DivTag.php +++ b/src/Html5/TextContentTags/DivTag.php @@ -1,8 +1,31 @@ HTML element is the generic container for flow content. It has no diff --git a/src/Html5/TextContentTags/DlTag.php b/src/Html5/TextContentTags/DlTag.php index 2344dbc..4eadb0c 100644 --- a/src/Html5/TextContentTags/DlTag.php +++ b/src/Html5/TextContentTags/DlTag.php @@ -1,8 +1,31 @@ HTML element represents a description list. The element encloses a diff --git a/src/Html5/TextContentTags/DtTag.php b/src/Html5/TextContentTags/DtTag.php index 802b05f..a409fda 100644 --- a/src/Html5/TextContentTags/DtTag.php +++ b/src/Html5/TextContentTags/DtTag.php @@ -1,8 +1,31 @@ HTML element specifies a term in a description or definition list, diff --git a/src/Html5/TextContentTags/FigcaptionTag.php b/src/Html5/TextContentTags/FigcaptionTag.php index c1626eb..5075092 100644 --- a/src/Html5/TextContentTags/FigcaptionTag.php +++ b/src/Html5/TextContentTags/FigcaptionTag.php @@ -1,8 +1,31 @@ HTML element represents a caption or legend describing the diff --git a/src/Html5/TextContentTags/FigureTag.php b/src/Html5/TextContentTags/FigureTag.php index 9ec587d..b565d8a 100644 --- a/src/Html5/TextContentTags/FigureTag.php +++ b/src/Html5/TextContentTags/FigureTag.php @@ -1,11 +1,34 @@ HTML element represents self-contained content, potentially with diff --git a/src/Html5/TextContentTags/HrTag.php b/src/Html5/TextContentTags/HrTag.php index b4aad68..04e0b60 100644 --- a/src/Html5/TextContentTags/HrTag.php +++ b/src/Html5/TextContentTags/HrTag.php @@ -1,8 +1,31 @@ HTML element represents a thematic break between paragraph-level diff --git a/src/Html5/TextContentTags/LiTag.php b/src/Html5/TextContentTags/LiTag.php index 83b8c96..b4e7c06 100644 --- a/src/Html5/TextContentTags/LiTag.php +++ b/src/Html5/TextContentTags/LiTag.php @@ -1,9 +1,32 @@ HTML element is used to represent an item in a list. It must be diff --git a/src/Html5/TextContentTags/MenuTag.php b/src/Html5/TextContentTags/MenuTag.php index 4fcafeb..a091ecc 100644 --- a/src/Html5/TextContentTags/MenuTag.php +++ b/src/Html5/TextContentTags/MenuTag.php @@ -1,8 +1,31 @@ HTML element is described in the HTML specification as a semantic diff --git a/src/Html5/TextContentTags/OlTag.php b/src/Html5/TextContentTags/OlTag.php index c3f0541..bd3d739 100644 --- a/src/Html5/TextContentTags/OlTag.php +++ b/src/Html5/TextContentTags/OlTag.php @@ -1,10 +1,33 @@ HTML element represents an ordered list of items — typically diff --git a/src/Html5/TextContentTags/PTag.php b/src/Html5/TextContentTags/PTag.php index 564be1d..c305c6d 100644 --- a/src/Html5/TextContentTags/PTag.php +++ b/src/Html5/TextContentTags/PTag.php @@ -1,8 +1,31 @@ HTML element represents a paragraph. Paragraphs are usually diff --git a/src/Html5/TextContentTags/PreTag.php b/src/Html5/TextContentTags/PreTag.php index dbcb01d..f8db6f2 100644 --- a/src/Html5/TextContentTags/PreTag.php +++ b/src/Html5/TextContentTags/PreTag.php @@ -1,8 +1,31 @@ HTML element represents preformatted text which is to be presented diff --git a/src/Html5/TextContentTags/SpanTag.php b/src/Html5/TextContentTags/SpanTag.php index 3b3ee5e..1853f81 100644 --- a/src/Html5/TextContentTags/SpanTag.php +++ b/src/Html5/TextContentTags/SpanTag.php @@ -1,8 +1,31 @@ HTML element is a generic inline container for phrasing content, diff --git a/src/Html5/TextContentTags/UlTag.php b/src/Html5/TextContentTags/UlTag.php index 0a6655c..9dc7897 100644 --- a/src/Html5/TextContentTags/UlTag.php +++ b/src/Html5/TextContentTags/UlTag.php @@ -1,9 +1,31 @@ HTML element represents an unordered list of items, typically diff --git a/src/Html5/Traits/CrossOriginTrait.php b/src/Html5/Traits/CrossOriginTrait.php index a83371d..1494671 100644 --- a/src/Html5/Traits/CrossOriginTrait.php +++ b/src/Html5/Traits/CrossOriginTrait.php @@ -1,8 +1,31 @@ and tags. */ -trait HyperlinkTrait { +trait HyperlinkTrait +{ /** * Causes the browser to treat the linked URL as a download. Can be used * with or without a filename value. @@ -315,4 +340,4 @@ trait HyperlinkTrait { unset($this->attributes()['type']); return $this; } -} \ No newline at end of file +} diff --git a/src/Html5/Traits/HyperlinkTrait/ReferrerPolicyValue.php b/src/Html5/Traits/HyperlinkTrait/ReferrerPolicyValue.php index 20df0c3..a291e0d 100644 --- a/src/Html5/Traits/HyperlinkTrait/ReferrerPolicyValue.php +++ b/src/Html5/Traits/HyperlinkTrait/ReferrerPolicyValue.php @@ -1,6 +1,29 @@