Skip to content

Modernize HTML markup in phpinfo output#22370

Open
jordikroon wants to merge 1 commit into
php:masterfrom
jordikroon:phpinfo-html5
Open

Modernize HTML markup in phpinfo output#22370
jordikroon wants to merge 1 commit into
php:masterfrom
jordikroon:phpinfo-html5

Conversation

@jordikroon

Copy link
Copy Markdown
Member

No description provided.

Comment thread ext/standard/info.c
Comment on lines -788 to +789
php_info_print(PHP_EGG_LOGO_DATA_URI "\" alt=\"PHP logo\" /></a>");
php_info_print(PHP_EGG_LOGO_DATA_URI "\" alt=\"PHP logo\"></a>");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure I agree with removing the the / to indicate an empty tag.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I believe it's better to not use the self closing variant. As "Self-closing tags () do not exist in HTML.".
This is acceptable by XHTML standards only.

https://developer.mozilla.org/en-US/docs/Glossary/Void_element#self-closing_tags

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sigh, I do kinda hate the HTML spec at times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants