Commit f1737bf4 authored by sgalinsk's avatar sgalinsk

[BUGFIX] HTML5 validation

Fixes: #29757


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/pmkshadowbox/trunk@76524 735d13b6-9817-0410-8766-e36946ffe9aa
parent bcfeef9d
......@@ -41,7 +41,7 @@ S.select = function(selector) {
if (!selector) {
var rel;
each(document.getElementsByTagName("a"), function(i, el) {
rel = el.getAttribute("rel");
rel = el.getAttribute("rel") || el.getAttribute('data-rel');
if (rel && relAttr.test(rel))
links.push(el);
});
......
......@@ -779,7 +779,7 @@ S.makeObject = function(link, options) {
obj.player = S.getPlayer(obj.content);
// HTML options always trump JavaScript options, so do these last
var rel = link.getAttribute("rel");
var rel = link.getAttribute("rel") || link.getAttribute('data-rel');
if (rel) {
// extract gallery name from shadowbox[name] format
var match = rel.match(galleryName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment