Browse Source

Merge pull request #518 from twbs/innerText

Use `textContent` when `innerText` is not available.
pull/536/head
XhmikosR 11 years ago
parent
commit
62f5f9fbe6
  1. 3
      dist/js/ratchet.js
  2. 2
      dist/js/ratchet.min.js
  3. 3
      docs/dist/js/ratchet.js
  4. 2
      docs/dist/js/ratchet.min.js
  5. 3
      js/push.js

3
dist/js/ratchet.js vendored

@ -596,7 +596,8 @@
}
data.title = head.querySelector('title');
data.title = data.title && data.title.innerText.trim();
var text = 'innerText' in data.title ? 'innerText' : 'textContent';
data.title = data.title && data.title[text].trim();
if (options.transition) {
data = extendWithDom(data, '.content', body);

2
dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

3
docs/dist/js/ratchet.js vendored

@ -596,7 +596,8 @@
}
data.title = head.querySelector('title');
data.title = data.title && data.title.innerText.trim();
var text = 'innerText' in data.title ? 'innerText' : 'textContent';
data.title = data.title && data.title[text].trim();
if (options.transition) {
data = extendWithDom(data, '.content', body);

2
docs/dist/js/ratchet.min.js vendored

File diff suppressed because one or more lines are too long

3
js/push.js

@ -457,7 +457,8 @@
}
data.title = head.querySelector('title');
data.title = data.title && data.title.innerText.trim();
var text = 'innerText' in data.title ? 'innerText' : 'textContent';
data.title = data.title && data.title[text].trim();
if (options.transition) {
data = extendWithDom(data, '.content', body);

Loading…
Cancel
Save