Last active
February 27, 2016 10:52
-
-
Save dajnz/43aa3a020bb142637b7c to your computer and use it in GitHub Desktop.
Web layout overflow test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// It was taken from https://habrahabr.ru/company/2gis/blog/246831/ | |
var a, w = document.createTreeWalker( | |
document, | |
NodeFilter.SHOW_TEXT | |
); | |
while(a = w.nextNode()) { | |
if (a.textContent.trim().length) | |
a.textContent = 'Одиннадцатиклассница пошла посмотреть на достопримечательность, она шла долго, несколько строчек, пока не пришла' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment