Skip to content

Instantly share code, notes, and snippets.

@afeld
Last active December 15, 2015 09:59
Show Gist options
  • Save afeld/5242219 to your computer and use it in GitHub Desktop.
Save afeld/5242219 to your computer and use it in GitHub Desktop.
HTML markup string that fails to be parsed by jQuery 1.9.1. Removing the leading and trailing whitespace fixes the problem.
<div class="galleryRow rowOf2">
<div class="introPanel xsome rowOf2-0 groupOf0 galleryPreview medium" data-gallery-id="5112c78b932b6315e6000115" data-xsome-size="0"><div class="introPanel-inner"><a href="http://gimli.aidan.jux.nu:8080/"><div class="galleryInfo"><div class="cornerButton"></div><div class="galleryInfo-child descriptionLinksEmpty"><div class="galleryInfo-sub-child"><div class="gallery-title"><div class="titleWrapper"><div class="juxTitle">EVERYTHING</div></div><div class="juxByline">by <span class="authordisplayname" data-empty-value="gimli" spellcheck="false">gimli</span></div></div><div class="galleryInfo-descriptionAndLinks" data-elem="descriptionAndLinks"><div class="juxByline">by <span class="authordisplayname" data-empty-value="gimli" spellcheck="false">gimli</span></div></div></div></div></div></a><div class="clear"></div></div></div>
<div class="introPanel xsome rowOf2-1 groupOf0 galleryPreview large" data-gallery-id="5112c78a932b6315e60000ea" data-xsome-size="0"><div class="introPanel-inner"><a href="http://gatwickairportprototype.aidan.jux.nu:8080/"><div class="galleryInfo"><div class="cornerButton"></div><div class="galleryInfo-child descriptionLinksEmpty"><div class="galleryInfo-sub-child"><div class="gallery-title"><div class="titleWrapper"><div class="juxTitle">EVERYTHING</div></div><div class="juxByline">by <span class="authordisplayname" data-empty-value="gatwickairportprototype" spellcheck="false">gatwickairportprototype</span></div></div><div class="galleryInfo-descriptionAndLinks" data-elem="descriptionAndLinks"><div class="juxByline">by <span class="authordisplayname" data-empty-value="gatwickairportprototype" spellcheck="false">gatwickairportprototype</span></div></div></div></div></div></a><div class="clear"></div></div></div>
</div> <div class="galleryRow rowOf3">
<div class="introPanel xsome rowOf3-0 groupOf0 galleryPreview medium" data-gallery-id="5112c789932b6315e60000bf" data-xsome-size="0"><div class="introPanel-inner"><a href="http://gandalf.aidan.jux.nu:8080/"><div class="galleryInfo"><div class="cornerButton"></div><div class="galleryInfo-child descriptionLinksEmpty"><div class="galleryInfo-sub-child"><div class="gallery-title"><div class="titleWrapper"><div class="juxTitle">EVERYTHING</div></div><div class="juxByline">by <span class="authordisplayname" data-empty-value="gandalf" spellcheck="false">gandalf</span></div></div><div class="galleryInfo-descriptionAndLinks" data-elem="descriptionAndLinks"><div class="juxByline">by <span class="authordisplayname" data-empty-value="gandalf" spellcheck="false">gandalf</span></div></div></div></div></div></a><div class="clear"></div></div></div>
<div class="introPanel xsome rowOf3-1 groupOf2 galleryPreview large" data-gallery-id="5112c789932b6315e6000094" data-xsome-size="2"><div class="introPanel-inner"><a href="http://frodo.aidan.jux.nu:8080/"><div class="galleryInfo"><div class="cornerButton"></div><div class="galleryInfo-child descriptionLinksEmpty"><div class="galleryInfo-sub-child"><div class="gallery-title"><div class="titleWrapper"><div class="juxTitle">foo bar</div></div><div class="juxByline">by <span class="authordisplayname" data-empty-value="frodo" spellcheck="false">frodododo</span></div></div><div class="galleryInfo-descriptionAndLinks" data-elem="descriptionAndLinks"><div class="juxByline">by <span class="authordisplayname" data-empty-value="frodo" spellcheck="false">frodododo</span></div></div></div></div></div></a><div class="column-one"><div class="quark quarkPreview groupOf2-0 slideshow monoquark hasDisplayname noTextExtract quarkPreview-slideshow-day-caption-top quarkPreview-slideshow-dusk-cover-right" data-owner-id="5112c789932b6315e6000093" data-quark-id="115" data-xsome-pos="0"><div class="quarkInner"><a href="http://frodo.aidan.jux.nu:8080/115" class="title quark-link" data-quark-id="115"><span class="title-text">Life in Photos</span></a><a href="http://frodo.aidan.jux.nu:8080/115" class="image-container quark-link" data-quark-id="115"><div class="quarkPreview-spinner"></div><img alt="Http%3a%2f%2faidan.jux.nu%3a8080%2fmedia%2fw1siziisijiwmtmvmdivmtmvmtlfmjffmjrfnze5xzyyotmzodg5mzzfnjcxotnhogyzzl9vlmpwzyjdxq%2f6293388936_67193a8f3f_o" src="http://aidan.jux.nu:8080/images/q/thumb/379x259%23100%2C50/quality/85/inter…E5XzYyOTMzODg5MzZfNjcxOTNhOGYzZl9vLmpwZyJdXQ%2F6293388936_67193a8f3f_o.jpg" /></a><div class="quarkText"><div class="quarkText-table"><div class="quarkText-row"><div class="quarkTextInner"><div class="quarkText-clamp"><a href="http://frodo.aidan.jux.nu:8080/115" class="quark-link" data-quark-id="115"><div class="title2"><span class="title-text">Life in Photos</span></div> </a></div><div class="bylineWrapper bylineWrapper1" id="byline-wrapper-115"><div class="byline"><a href="http://frodo.aidan.jux.nu:8080" class="author">frodododo</a></div><div class="date"><span class="month"></span><span class="day"></span><span class="year"></span></div><div class="view-count">1 view</div></div></div></div></div></div><div class="quarkPreviewActions"></div></div></div></div><div class="column-two"><div class="quark quarkPreview groupOf2-1 video monoquark hasDisplayname hasTextExtract quarkPreview-video-day-caption-top quarkPreview-video-dusk-caption-cover-fullWidth" data-owner-id="5112c789932b6315e6000093" data-quark-id="105" data-xsome-pos="1"><div class="quarkInner"><a href="http://frodo.aidan.jux.nu:8080/105" class="title quark-link" data-quark-id="105"><span class="title-text">Reggie Watts 05/08/2009 'I Just Want To'</span></a><a href="http://frodo.aidan.jux.nu:8080/105" class="image-container quark-link" data-quark-id="105"><div class="quarkPreview-spinner"></div><img alt="Http%3a%2f%2fimg.youtube.com%2fvi%2f344opaqcaqi%2fhqdefault" src="http://aidan.jux.nu:8080/images/q/thumb/x598%3E/quality/85/interlace/true/src/http%3A%2F%2Fimg.youtube.com%2Fvi%2F344OpaQCAQI%2Fhqdefault.jpg" /></a><div class="quarkText"><div class="quarkText-table"><div class="quarkText-row"><div class="quarkTextInner"><div class="quarkText-clamp"><a href="http://frodo.aidan.jux.nu:8080/105" class="quark-link" data-quark-id="105"><div class="title2"><span class="title-text">Reggie Watts 05/08/2009 'I Just Want To'</span></div><div class="extract"><span class="extract-text">Reggie Watts</span></div> </a></div><div class="bylineWrapper bylineWrapper1" id="byline-wrapper-105"><div class="byline"><a href="http://frodo.aidan.jux.nu:8080" class="author">frodododo</a></div><div class="date"><span class="month"></span><span class="day"></span><span class="year"></span></div><div class="view-count">5 views</div></div></div></div></div></div><div class="quarkPreviewActions"></div></div></div></div><div class="clear"></div></div></div>
<div class="introPanel xsome rowOf3-2 groupOf0 galleryPreview small" data-gallery-id="5112c788932b6315e6000069" data-xsome-size="0"><div class="introPanel-inner"><a href="http://boromir.aidan.jux.nu:8080/"><div class="galleryInfo"><div class="cornerButton"></div><div class="galleryInfo-child descriptionLinksEmpty"><div class="galleryInfo-sub-child"><div class="gallery-title"><div class="titleWrapper"><div class="juxTitle">EVERYTHING</div></div><div class="juxByline">by <span class="authordisplayname" data-empty-value="boromir" spellcheck="false">boromir</span></div></div><div class="galleryInfo-descriptionAndLinks" data-elem="descriptionAndLinks"><div class="juxByline">by <span class="authordisplayname" data-empty-value="boromir" spellcheck="false">boromir</span></div></div></div></div></div></a><div class="clear"></div></div></div>
</div> <div class="galleryRow rowOf2">
<div class="introPanel xsome rowOf2-0 groupOf0 galleryPreview large" data-gallery-id="5112c787932b6315e600003e" data-xsome-size="0"><div class="introPanel-inner"><a href="http://about.aidan.jux.nu:8080/"><div class="galleryInfo"><div class="cornerButton"></div><div class="galleryInfo-child descriptionLinksEmpty"><div class="galleryInfo-sub-child"><div class="gallery-title"><div class="titleWrapper"><div class="juxTitle">EVERYTHING</div></div><div class="juxByline">by <span class="authordisplayname" data-empty-value="about" spellcheck="false">about</span></div></div><div class="galleryInfo-descriptionAndLinks" data-elem="descriptionAndLinks"><div class="juxByline">by <span class="authordisplayname" data-empty-value="about" spellcheck="false">about</span></div></div></div></div></div></a><div class="clear"></div></div></div>
<div class="introPanel xsome rowOf2-1 groupOf0 galleryPreview medium" data-gallery-id="5112c77f932b6315e6000002" data-xsome-size="0"><div class="introPanel-inner"><a href="http://juxers.aidan.jux.nu:8080/"><div class="galleryInfo"><div class="cornerButton"></div><div class="galleryInfo-child descriptionLinksEmpty"><div class="galleryInfo-sub-child"><div class="gallery-title"><div class="titleWrapper"><div class="juxTitle">EVERYTHING</div></div><div class="juxByline">by <span class="authordisplayname" data-empty-value="juxers" spellcheck="false">juxers</span></div></div><div class="galleryInfo-descriptionAndLinks" data-elem="descriptionAndLinks"><div class="juxByline">by <span class="authordisplayname" data-empty-value="juxers" spellcheck="false">juxers</span></div></div></div></div></div></a><div class="clear"></div></div></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment