-
Notifications
You must be signed in to change notification settings - Fork 564
Changed <a name="..."> to <a id="..."> #416
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
Conversation
Previously the page stated "PHP 4, PHP 5 and PHP 7 are distributed..." even though PHP 8 has been released. This commit changes the wording to be "Starting with PHP 4, versions of the PHP software are distributed..."
PhpStorm flagged @name as a deprecated HTML attribute, so it seemed appropriate to change then to @id. In cases where there were both a @name and @id attribute and their values were the same, this commit removes the @name attribute (there were no cases where both @name and @id attributes existed but having different values.)
Thank you! It might be more important, though, to also fix that in the scripts which are used to generate these entries, e.g. Line 98 in f16e2cb
|
@cmb69 — lol! I didn't know that, but know I do! :-) I will fix there and updated. BTW, I also have a few other PRs are will add, each of which is very narrow so it will be easier to review. |
@cmb69 — Where are these files? I can't find them in my cloned repo? |
One is bin/news2html. I think there is at least one other to generate the archive entries, but I'm not sure where that is (might be included/used from bin/createNewsEntry). |
@cmb69 — Sorry, I just had a brain fart. I was looking for the |
PhpStorm flagged @name as a deprecated HTML attribute, so it seemed appropriate to change then to @id. In cases where there were both a @name and @id attribute and their values were the same, this commit removes the @name attribute (there were no cases where both @name and @id attributes existed but having different values.)
@cmb69 — PR updated to include One additional question. PhpStorm flagged line 72 as an error because of the
Is that valid in some earlier version of PHP that you might still be using? Shouldn't it be
If yes I can either add that fix to this PR or create a new PR; whichever your preference. |
Oh, right, this should more correctly be |
HTML deprecated table element attributes @cellpadding, @cellspacing, @border, @align, etc. so this PR replaces them with CSS classes, selectors and style rules. It also removed a CSS style rule that was being overwritten by the next line, it removes an invalid font rule (See https://stackoverflow.com/a/20641079/102699), it removes redundant `px` from `0px` and it sneaks in a <label> element to wrap an <input> element per PhpStorm's code inspection instructions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! Except for removing the table attributes this looks very good to me.
When opening this repo in PhpStorm it flagged @name as a deprecated HTML attribute, so it seemed appropriate to change then to @id. In cases where there were both a @name and @id attribute and their values were the same, this commit removes the @name attribute (there were no cases where both @name and @id attributes existed but having different values.)