<!DOCTYPE html>
<html>
<head>
<style>.highlight {
background-color: yellow
}</style>
<script type="text/javascript" src="/jquery/jquery.js"></script>
</head>
<body>
<p>
<span>Look:</span>
<span>This is some text in a paragraph.</span>
<span>This is a note about it.</span>
</p>
<p>
<span>Look:</span>
<span>This is some text in a paragraph.</span>
<span>This is a note about it.</span>
</p>
<p>
<span>Look:</span>
<span>This is some text in a paragraph.</span>
<span>This is a note about it.</span>
</p>
</body>
</html>
html("p span:last").text()
# 'This is a note about it. This is a note about it. This is a note about it.'
html("span:last").text()
# 'This is a note about it.'
why the behavior of pyquery is different with jquery ?
pyquery version: 1.2.17
html code here:
jquery
code
result:
This is a note about it.
code:
a same rsult
This is a note about it.
pyquery
code:
why the behavior of pyquery is different with jquery ? pyquery version: 1.2.17