Title: Generates Invalid HTML
Last modified: April 28, 2021

---

# Generates Invalid HTML

 *  Resolved [Matt](https://wordpress.org/support/users/mattk1980/)
 * (@mattk1980)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/generates-invalid-html/)
 * The plugin generates invalid HTML:
 * Element script must not have attribute defer unless attribute src is also specified.
 * Using the HTML validator service: [https://validator.w3.org](https://validator.w3.org)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * (@kiboit)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/generates-invalid-html/#post-14375962)
 * Hi [@mattk1980](https://wordpress.org/support/users/mattk1980/),
 * Just released a new version 1.117 which renames the `async` and `defer` attributes
   to `data-phast-async` and `data-phast-defer` respectively. It doesn’t make any
   functional difference, but keeps W3C’s validator happy.
 * Thanks for the report, and let me know if you run into other issues.
 * –Albert
 *  Thread Starter [Matt](https://wordpress.org/support/users/mattk1980/)
 * (@mattk1980)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/generates-invalid-html/#post-14376399)
 * Excellent, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Generates Invalid HTML’ is closed to new replies.

 * ![](https://ps.w.org/phastpress/assets/icon-256x256.png?rev=1873505)
 * [PhastPress](https://wordpress.org/plugins/phastpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/phastpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/phastpress/)
 * [Active Topics](https://wordpress.org/support/plugin/phastpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/phastpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/phastpress/reviews/)

## Tags

 * [invalid html](https://wordpress.org/support/topic-tag/invalid-html/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 2 replies
 * 2 participants
 * Last reply from: [Matt](https://wordpress.org/support/users/mattk1980/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/generates-invalid-html/#post-14376399)
 * Status: resolved