Support » Plugin: Airstory » Import Fails for Duplicate Lists

  • Resolved SteveSWG

    (@steveswg)


    Hello,

    Whenever I duplicate a list (numbered or unnumbered) in AirStory, the whole AirStory document will fail to import in WordPress.

    For instance I create a list:

    • item 1
      item 2
      item 3
    • Next, I duplicate that list with a copy / paste.

      I noticed the HTML will look as follows:

      
      <p>here is a list</p>
      <ul>
      <li id="9eb4bb86-6baf-47a0-8b3e-cf5f112ae623">item 1</li>
      <li id="a0d38fb5-ef2e-46cc-8508-4af10bb3f348">item 2</li>
      <li id="aab99955-9302-4f76-afd2-4de85f71f1c9">item 3</li>
      </ul>
      <p><br /></p>
      <p>here is a dup</p>
      <ul>
      <li id="9eb4bb86-6baf-47a0-8b3e-cf5f112ae623">item 1</li>
      <li id="a0d38fb5-ef2e-46cc-8508-4af10bb3f348">item 2</li>
      <li id="aab99955-9302-4f76-afd2-4de85f71f1c9">item 3</li>
      </ul>
      <p><br /></p>
      

      Both lists carry the same “id=” tag value. This causes the import to fail …

      Is there a known workaround?

      Regards,
      Steve Williams

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter SteveSWG

    (@steveswg)

    Hi,

    Update: this problem also occurs with other HTML elements such as H1, H2, paragraphs <p>, etc., not just lists.

    Regards,

    -steve

    Plugin Contributor Steve Grunwell

    (@stevegrunwell)

    Steve,

    It seems like the forums are having trouble with the code, too 🙂

    The likely cause for this is that duplicate IDs are technically invalid in HTML, and DOMDocument (the PHP library being used to parse the HTML rendered by Airstory to prepare the markup for WordPress) is likely choking.

    The most direct workaround would be to not duplicate IDs within the markup; are these IDs you’re putting in place, or are the IDs the result of the same pieces of content being displayed multiple times in the same document? If the latter, this may be a bug within the Airstory application itself (since it’s rendering invalid HTML). You might consider posting an issue on the Airstory support forum and pointing them to this thread.

    Thread Starter SteveSWG

    (@steveswg)

    Hi Steve,

    From AirStory, I have no control over the HTML (and associated Ids).

    Whenever I create a new element in AirStory — headings, paragraphs, lists, etc., then, AirStory will auto-insert an ID for each of these elements.

    A copy / paste operation will copy the ID’s too, but that’s invisible to AirStory users.

    I discovered this issue by publishing my document as HTML instead as exporting it to WordPress. This way, I get a side by side comparison of the text I typed -vs- the HTML output.

    Ok, I’ll go ahead and open a ticket with AirStory support.

    Thanks,

    -steve

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Import Fails for Duplicate Lists’ is closed to new replies.