Report an issue

Found a bug you'd like to tell us about?
 

 Here’s what to do…Login, Select an ‘Issue Category’ from below and click on the "New Issues” button.

 Please note that support questions will not be handled here. If you need hands on technical support please take out a subscription.

#189 – Ark Editor breaking microdata/structured data

Posted in ‘ Ark Editor’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 01 December 2016 13:03 GMT
pixelstunde

Ark Editor breaks microdata. After saving this (what is totally valid HTML 5):

<div itemscope itemtype="http://schema.org/HotelRoom">
  <span itemprop="name">Single Room</span>
  <span itemprop="description">Our single rooms are cosy and comfortable.</span>
  Rate: <span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
   
    <span itemprop="priceSpecification" itemscope itemtype="http://schema.org/UnitPriceSpecification">
      <meta itemprop="price" content="99.00">$99.00
      <meta itemprop="priceCurrency" content="USD">
      <meta itemprop="unitCode" content="DAY">per night
    </span>
  </span>
</div>

Becomes that:

<div itemscope="" itemtype="http://schema.org/HotelRoom">
    <span itemprop="name">Single Room</span>
    <span itemprop="description">Our single rooms are cosy and comfortable.</span> Rate:
</div>
<p>
    <span itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
        <span itemprop="priceSpecification" itemscope="" itemtype="http://schema.org/UnitPriceSpecification">$99.00 per night</span>
    </span>
</p>

If you skip the link tag it becomes that (a bit closer, but results invalid microdata with missing values):

<div itemscope="" itemtype="http://schema.org/HotelRoom">
    <span itemprop="name">Single Room</span>
    <span itemprop="description">Our single rooms are cosy and comfortable.</span>
    Rate: <span itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
        <span itemprop="priceSpecification" itemscope="" itemtype="http://schema.org/UnitPriceSpecification">
            $99.00 per night</span>
        </span>
</div>

 

 

Custom Fields
Server type
Linux
Web server type
Apache
ARK product version
latest
Joomla! version
3.6
PHP Version
7
Web browser
Chrome
Errors log
 
Steps to replicate the issue
Insert the code in source mode Click Save
Friday, 27 January 2017 10:50 GMT
awills

Not being able to produce in the latest version of the editor

Is this still an issue?

WebxSolution Ltd is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.

Copyright © 2009 - 2016 WebxSolution Ltd
Powered by JoomlaWired