Title: Invalid HTML5 attribute
Last modified: August 20, 2016

---

# Invalid HTML5 attribute

 *  [Josh Carr](https://wordpress.org/support/users/piano08man/)
 * (@piano08man)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/invalid-html5-attribute/)
 * Whenever a page/post doesn’t have an original source listed, the plugin adds 
   this to the page:
 * <link rel=”original-source” href=” ” />
 * This creates an invalid href attribute in HTML5 and shouldn’t be included on 
   a post/page without a source listed. Unless there’s another reason for this that
   I’m not aware of, I’d love to see this fixed. Thanks!
 * [http://wordpress.org/extend/plugins/wordpress-seo-news/](http://wordpress.org/extend/plugins/wordpress-seo-news/)

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

 *  [kutu62](https://wordpress.org/support/users/kutu62/)
 * (@kutu62)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/invalid-html5-attribute/#post-3468609)
 * this error has caused over 4,000 404 errors in google webmaster because the link
   rel=”original-source” is an invalid link in the source code produced by Yoast
   SEO News plugin
 *  [kutu62](https://wordpress.org/support/users/kutu62/)
 * (@kutu62)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/invalid-html5-attribute/#post-3468610)
 * here is the fit on github
 * [https://github.com/jdevalk/Google-News-Sitemap/pull/25](https://github.com/jdevalk/Google-News-Sitemap/pull/25)
 *     ```
       $original_source = trim( wpseo_get_value( 'newssitemap-original', $post->ID ) );
       if ( !empty( $original_source ) ) {
       echo '' ;//issue in head, has no output, If left blank it stays blank, that is why removed.
       } else {
       $sources = explode( '|', $original_source );
       foreach ( $sources as $source )
       echo '';//issue in head, it outputs the Post Permalink instead of original source one
       }
       ```
   
 * Update xml-news-sitemap-class.php in wordpress-seo-new under plugins
 * how to remove original-source from yoast seo wordpress news plugin

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

The topic ‘Invalid HTML5 attribute’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-seo-news_cedbe8.svg)
 * [WordPress SEO News](https://wordpress.org/plugins/wordpress-seo-news/)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo-news/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo-news/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo-news/reviews/)

## Tags

 * [attribute](https://wordpress.org/support/topic-tag/attribute/)
 * [href](https://wordpress.org/support/topic-tag/href/)
 * [html5](https://wordpress.org/support/topic-tag/html5/)
 * [original](https://wordpress.org/support/topic-tag/original/)

 * 2 replies
 * 2 participants
 * Last reply from: [kutu62](https://wordpress.org/support/users/kutu62/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/invalid-html5-attribute/#post-3468610)
 * Status: not resolved