Do searchers interpret elements before or after rendering by Javascript?

2

For example, in a ng-repeat of Angular or in simple% with% of Jquery, will searchers read all dynamically created elements, since it is a replace client-side?

In the excerpt below, taking the Jquery example, I have a append that will be replaced by a real div.blockquote tag as well as its content, which is in a predefined format, will be divided into several tags so that preserve the semantics. Will searchers take this new tag and their "daughters" into account?

(function blockquote(){
	$('.blockquote').each(function(i){
  	var self = $(this);
    var phrase = self.html().split(/---/)[0].replace(/\n/g, '<br>');
    var footer = self.html().split(/---/)[1];
    var autor  = footer.split('#')[0];
    var autorHref = footer.split('#')[1];
    var blockquote = $('<blockquote></blockquote>');
    var text = $('<p></p>');
    var line = $('<hr>');
    var footer = $('<footer></footer>');
    var cite = $('<cite></cite>');
    blockquote.insertAfter(self);
    text.appendTo(blockquote).html(phrase);
    line.appendTo(blockquote);
    footer.appendTo(blockquote).html(' - ');
    cite.appendTo(footer).html('<a href="'+autorHref+'" target="_blank">'+autor+'</a>');
    blockquote.find('br:last, br:first').remove();
    blockquote.children('p').prepend('<br>');
    self.remove();
  })
})();
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
blockquote {
  background: #fff;
  border-right: 10px solid #3c948b;
  position: relative;
  box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 600px;
  min-width: 200px;
}
blockquote p {
  padding: 15px;
  vertical-align: middle;
  font-size: 12pt;
  font-family: sans-serif;
  font-style: italic;
  margin-left: 30px;
}
blockquote:before {
  content: '"';
  font-size: 38pt;
  font-family: 'Impact', sans-serif;
  font-style: italic;
  color: #3c948b;
  top: 3px;
  left: 3px;
  position: absolute;
}
blockquote p:after {
  content: '"';
}
blockquote hr {
  width: calc(100% - 40px);
  background: #3c948b;
  height: 1px;
  float: right;
  margin-right: -2px;
  border: 0;
}
blockquote footer {
  padding: 10px;
  text-align: right;
  font-weight: bold;
  font-size: 11pt;
}
blockquote footer cite a {
  text-decoration: none;
  color: #3c948b;
}
blockquote footer cite a:hover {
  text-decoration: underline;
  color: #3c948b;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><br><divclass="blockquote">
  A primeira condição para modificar a realidade consiste em conhecê-la. --- Eduardo Galeano # https://www.google.com/
</div>
    
asked by anonymous 06.07.2016 / 16:27

0 answers