Several HTML validation errors and warnings
-
I am a user of your WP PayPal plugin on my WordPress site (https://sheetmusiclibrary.website/) and I have identified several HTML validation errors and warnings in the plugin’s generated output, as reported by the W3C Markup Validation Service (https://validator.w3.org).
I would kindly request that the following issues be addressed in a future update:
- ERROR: Attribute ‘required’ not allowed on elements
The plugin generates hidden input fields (name=”description” and name=”amount”) with the ‘required’ attribute, which is invalid HTML5. The ‘required’ attribute is only permitted on user-interactive input types (text, email, checkbox, etc.) and has no meaning on hidden fields.
Affected output example:
Fix: Remove the ‘required’ attribute from all hidden input fields. - ERROR: Empty ‘action’ attribute on element
The plugin outputs a tag with an empty action attribute (action=””), which is invalid per the HTML5 specification. The action attribute must be non-empty if present.
Affected output example:
Fix: Either populate the action attribute with the correct PayPal endpoint URL, or remove the attribute entirely and rely on JavaScript to handle the form submission. - WARNING: Obsolete ‘border’ attribute on and elements
The plugin outputs PayPal button and tracking pixel elements with a ‘border’ attribute, which has been obsolete since HTML5. The validator specifically flags:
- (PayPal submit button)
- Fix: Remove the ‘border’ attribute from both elements and use CSS instead (e.g. img { border: 0; }).
All of the above issues are generated entirely by the plugin’s output and cannot be corrected by the end user without modifying the plugin files directly (which would be overwritten on each update).
I would be grateful if these corrections could be included in a future release. Please let me know if you need any further details or a full W3C validation report.
Thank you for your work on this plugin.
The page I need help with: [log in to see the link]
- ERROR: Attribute ‘required’ not allowed on elements
You must be logged in to reply to this topic.